Click here to Skip to main content
15,917,731 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ShellExecute Pin
Tomasz Sowinski26-Sep-01 3:03
Tomasz Sowinski26-Sep-01 3:03 
GeneralRe: ShellExecute Pin
Oscar Vazquez26-Sep-01 3:30
Oscar Vazquez26-Sep-01 3:30 
GeneralMultibyte character Pin
26-Sep-01 2:11
suss26-Sep-01 2:11 
GeneralRe: Multibyte character Pin
Anders Molin26-Sep-01 2:42
professionalAnders Molin26-Sep-01 2:42 
Generaldialog in dll Pin
Bjorn26-Sep-01 0:43
Bjorn26-Sep-01 0:43 
GeneralRe: dialog in dll Pin
Oscar Vazquez26-Sep-01 3:46
Oscar Vazquez26-Sep-01 3:46 
GeneralRe: dialog in dll Pin
#realJSOP26-Sep-01 4:29
professional#realJSOP26-Sep-01 4:29 
GeneralProblem reading string from registry Pin
26-Sep-01 0:23
suss26-Sep-01 0:23 
Hello, I have a problem reading a string from the registry (Windows CE)

I created two value's with the remote registry editor.

UserLevel:REG_DWORD:0x01
ProgUnitID:REG_SZ:696969

here's a snippet

DWORD UserLevel;
CString ProgUnitID;
//TCHAR ProgUnitID;

DWORD type;
DWORD size = sizeof(DWORD);

int result = RegOpenKeyEx(HKEY_LOCAL_MACHINE,_T("Software\\GinaII"),
NULL,KEY_ALL_ACCESS,&hKey);

if(result==ERROR_SUCCESS)
{
RegQueryValueEx(hKey,_T"(UserLevel"),NULL,&type,(BYTE*) &UserLevel,&size); // works well, function returns 0
RegQueryValueEx(hKey,_T("ProgUnitID"),NULL,&type,(BYTE *) &ProgUnitID,(DWORD*)(sizeof(TCHAR)*6)); // function returns 0

Result:
UserLevel=1
ProgUnitID={""}

What am I doing wrong here?

Arjan

GeneralRe: Problem reading string from registry Pin
Michael P Butler26-Sep-01 0:33
Michael P Butler26-Sep-01 0:33 
GeneralRe: Problem reading string from registry Pin
Anders Molin26-Sep-01 0:34
professionalAnders Molin26-Sep-01 0:34 
GeneralRe: Problem reading string from registry Pin
Gavin Jerman26-Sep-01 2:06
Gavin Jerman26-Sep-01 2:06 
GeneralRe: Problem reading string from registry Pin
26-Sep-01 4:12
suss26-Sep-01 4:12 
GeneralRe: Problem reading string from registry Pin
Michael Dunn26-Sep-01 8:45
sitebuilderMichael Dunn26-Sep-01 8:45 
QuestionI was wondering - why isn't WM_LBUTTONUP received? Pin
26-Sep-01 0:23
suss26-Sep-01 0:23 
AnswerRe: I was wondering - why isn't WM_LBUTTONUP received? Pin
Tomasz Sowinski26-Sep-01 1:01
Tomasz Sowinski26-Sep-01 1:01 
GeneralRe: I was wondering - why isn't WM_LBUTTONUP received? Pin
26-Sep-01 13:47
suss26-Sep-01 13:47 
Generalslow OpenGL in MFC Pin
25-Sep-01 23:43
suss25-Sep-01 23:43 
GeneralRe: slow OpenGL in MFC Pin
26-Sep-01 7:01
suss26-Sep-01 7:01 
GeneralRe: slow OpenGL in MFC Pin
JoNy26-Sep-01 22:33
JoNy26-Sep-01 22:33 
GeneralTree Control again... Pin
25-Sep-01 23:23
suss25-Sep-01 23:23 
GeneralRe: Tree Control again... Pin
Tomasz Sowinski26-Sep-01 1:12
Tomasz Sowinski26-Sep-01 1:12 
GeneralRe: Tree Control again... Pin
26-Sep-01 3:45
suss26-Sep-01 3:45 
GeneralTimer (without message map) Pin
Le Ridder Noir25-Sep-01 23:18
Le Ridder Noir25-Sep-01 23:18 
GeneralRe: Timer (without message map) Pin
Steen Krogsgaard26-Sep-01 0:23
Steen Krogsgaard26-Sep-01 0:23 
QuestionStatic initializers à la Java? Pin
Tom Nuydens25-Sep-01 23:07
Tom Nuydens25-Sep-01 23:07 

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.