Problems VB6 reading registry under win7 32 bits and 64 bits

Discussion in 'Programmer's Corner' started by Picbuster, Dec 3, 2013.

  1. Picbuster

    Thread Starter Member

    Dec 2, 2013
    373
    50
    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
     
  2. ScottWang

    Moderator

    Aug 23, 2012
    4,853
    767
    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.
     
  3. Picbuster

    Thread Starter Member

    Dec 2, 2013
    373
    50
    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
     
Loading...