I'm trying to register the DLL in Win7 registry (in XP its working). The DllRegisterServer is implemented as follow:
Succeeded - Call the RegCreateKeyEx function to register new key : \\HKEY_CLASSES_ROOT\\NEWKEY
Failed - Call the RegCreateKeyEx function to register new key : \\HKEY_CLASSES_ROOT\\CLSID\\NEWKEY
Any idea why?
Thanks
The Windows API includes a function GetLastError()
. Most functions, including the registry access function include the error reporting by the LastError paradigma.
When you have your own code to register the DLL, ie you debug your DllRegisterServer
, did you call GetLastError after a failed function call? You will get an idea of the reason, when you evaluate the return value of GetLastError()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.