Problems VB6 reading registry under win7 32 bits and 64 bits

Thread Starter

Picbuster

Joined Dec 2, 2013
1,062
VB6 system 32 bits win 7 reading

aa = "\Software\Microsoft\Windows\CurrentVersion\App Paths\Wlmail.exe"

RetVal = RegOpenKeyEx(HKEY_LOCAL_MACHINE, aa, 0&, KEY_ALL_ACCESS, hKey)

working RetVal=0

now doing system 64 win 7

not working RetVal=2

aa does excits on both systems 32/64

Why is this not working?


Best regards,
Johan
 

ScottWang

Joined Aug 23, 2012
7,505
I'm still using VB6 working in the xp, for the furture maybe I will also have the some problem as your met, so I'm searching some infos, you can see this.

Some people said that you should using xp mode in win7, you can try it.
 

Thread Starter

Picbuster

Joined Dec 2, 2013
1,062
Thank you for the input.

I will test next week found something in the regopenkey but not sure.
Timing seems to be at stake.

I will keep you informed.

Regards,
Johan
 
Top