I have a dll(written in vb6) that compiles VB6 code.
I’m reading the VB6.exe path from the registry and it works fine.
m_oRegTool.RegistryPath = "Applications\vb6.exe\shell\make\command"
sVB6EXEFile = m_oRegTool.GetValueData("", "")
The problem is that the VB6.exe path is located in different locations in the registry for XP and win 7 (64 bit).
Any ideas how I can find the VB6.exe in the registry without specifying the location in the registry?
thanks,
I think that (in a standard install and if the user hasn’t changed the default) that the following registry key will contain the path the the exe:
The Default value in this key contains the open command for
vbpfiles – On my machine:So you could just remove the “%1” and the other double quotes to get your path