Link to home
Start Free TrialLog in
Avatar of afikim
afikim

asked on

RegQueryValueEx causes Error 234

Hello

I have this code in two programs.   In one program it works perfectly.  
On the other program (same machine) the result is 234 at the first reading.  Keeping the program turned on and quering the same function will not return an error and read the details as needed.

Any comments?

Thanks

Wli
templong = RegQueryValueEx(hKey,
                                             TEXT("MyEntry"),
                                             NULL,
                                             NULL,
                                             (LPBYTE)&MyVariable,
		  &lBytesRead) ;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of afikim
afikim

ASKER

OoooooPS....

Hi Zoppo

How did I forget that???

Thanks for your help

Eli