Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetLastError() :- 1814 Pin
CPallini22-Apr-08 23:11
mveCPallini22-Apr-08 23:11 
GeneralAlways receiving WSAEWOULDBLOCK error Pin
yaminisridaran22-Apr-08 21:00
yaminisridaran22-Apr-08 21:00 
GeneralRe: Always receiving WSAEWOULDBLOCK error [modified] Pin
Mark Salsbery22-Apr-08 21:06
Mark Salsbery22-Apr-08 21:06 
GeneralRe: Always receiving WSAEWOULDBLOCK error Pin
yaminisridaran22-Apr-08 21:40
yaminisridaran22-Apr-08 21:40 
GeneralRe: Always receiving WSAEWOULDBLOCK error Pin
Mark Salsbery22-Apr-08 21:41
Mark Salsbery22-Apr-08 21:41 
Generalproblem with gridctrl_demo225 Pin
sunny_vc22-Apr-08 20:55
sunny_vc22-Apr-08 20:55 
GeneralRe: problem with gridctrl_demo225 Pin
Rajesh R Subramanian22-Apr-08 23:57
professionalRajesh R Subramanian22-Apr-08 23:57 
GeneralRegOpenKeyEx returning strange error Pin
vipin_nvk22-Apr-08 20:43
vipin_nvk22-Apr-08 20:43 
I have been trying to open particular registry key to know the version of Outlook currently installed on the PC. Here is the piece of code

HKEY hKey;
CString strKey = _T("Outlook.Application\\CurVer");

if (::RegOpenKeyEx(HKEY_CLASSES_ROOT, strKey, 0, KEY_READ, &hKey) == ERROR_SUCCESS)
{
// do something
}
else
{
DWORD dwError = GetLastError();
}

The above piece of code fails to open the registry key and the GetLastError() returns error no. 122 which says "The data area passed to the system call is too small"

I have administrative privilege on the PC, but this piece of code fails to open the key, what could be the reason, and how do I interpret the error returned?

Thanx.
GeneralRe: RegOpenKeyEx returning strange error Pin
Jhony george22-Apr-08 20:51
Jhony george22-Apr-08 20:51 
GeneralRe: RegOpenKeyEx returning strange error Pin
vipin_nvk22-Apr-08 21:15
vipin_nvk22-Apr-08 21:15 
GeneralRe: RegOpenKeyEx returning strange error Pin
Jhony george22-Apr-08 21:22
Jhony george22-Apr-08 21:22 
GeneralRe: RegOpenKeyEx returning strange error Pin
Rajesh R Subramanian23-Apr-08 0:00
professionalRajesh R Subramanian23-Apr-08 0:00 
QuestionRe: RegOpenKeyEx returning strange error Pin
David Crow23-Apr-08 3:42
David Crow23-Apr-08 3:42 
Generaldll problem Pin
prithaa22-Apr-08 20:25
prithaa22-Apr-08 20:25 
GeneralRe: dll problem Pin
Cedric Moonen22-Apr-08 20:43
Cedric Moonen22-Apr-08 20:43 
GeneralRe: dll problem Pin
prithaa22-Apr-08 21:11
prithaa22-Apr-08 21:11 
GeneralEM_CHARFROMPOS for CRichEditCtrl Pin
prithaa22-Apr-08 20:23
prithaa22-Apr-08 20:23 
GeneralRe: EM_CHARFROMPOS for CRichEditCtrlp[modified] Pin
Naveen22-Apr-08 20:51
Naveen22-Apr-08 20:51 
GeneralRe: EM_CHARFROMPOS for CRichEditCtrl Pin
prithaa22-Apr-08 21:09
prithaa22-Apr-08 21:09 
GeneralRe: EM_CHARFROMPOS for CRichEditCtrl Pin
Naveen22-Apr-08 21:15
Naveen22-Apr-08 21:15 
QuestionRe: EM_CHARFROMPOS for CRichEditCtrl Pin
David Crow23-Apr-08 3:46
David Crow23-Apr-08 3:46 
GeneralRe: EM_CHARFROMPOS for CRichEditCtrl Pin
prithaa24-Apr-08 6:50
prithaa24-Apr-08 6:50 
GeneralBasic concept of making a extractor Pin
neha.agarwal2722-Apr-08 19:46
neha.agarwal2722-Apr-08 19:46 
GeneralRe: Basic concept of making a extractor Pin
Cedric Moonen22-Apr-08 20:06
Cedric Moonen22-Apr-08 20:06 
GeneralRe: Basic concept of making a extractor Pin
neha.agarwal2722-Apr-08 20:12
neha.agarwal2722-Apr-08 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.