Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

regsvr32 doesn't create any entries in registry

I have a problem trying to register DLL. My OS is Windows 7 (x64).

I do it in two different ways:

1) Using regsvr32. I get message "DllRegisterServer ... succeedeed", nevertheless I can't find my CLSID in registry. (And I get "Class not registered" error trying to create an instace of component with this CLSID).In this case, I know that DllRegisterServer is never called (because I create a text file in the beginning of this function and it is not created).

2) Explicitly load my DLL and call DllRegisterServer. In this case, DllRegisterServer returns S_OK, but still I can't find my CLSID in registry and get "Class not registered" error.

I'm sure the code is correct (for it doesn't work only on my OS), so it seems that the problem is in OS. Did anyone face such a problem?

like image 400
skvadrik Avatar asked Nov 14 '22 21:11

skvadrik


1 Answers

http://msdn.microsoft.com/en-us/library/aa384232(v=vs.85).aspx should explain it

Depending on whether your dll is 32bit or 64bit the registry keys are created at separate locations

like image 181
parapura rajkumar Avatar answered Dec 20 '22 01:12

parapura rajkumar