-
Regsvr32 errors?
Im having trouble registering dll files, I have tried a few different dlls but they all result in similar errors.
I click run, then type,
Regsrv32.exe C:\VB_Stuff\mze.dll
then Regsrv will give me a message like
LoadLibrary("C:\VB_Stuff\mze.dll") Failed.
GetLastError returns 0x00000485
Does anybody know what this error means?
Any help is appreciated.
-
-
Thanks for reply.
Yes, I know some of the dlls I have tried were made in VB.
will regsrv only accpet C or C+ type dlls?
-
No.
As far as I know, they only accept DLLs with an entry point. (VB and Visual C/C++-made DLLs have this)
Did you have the DLL registered already, and trying to register it again?
-
Two things -
Firsrt, the OS will give you the error message. Use FormatMessage api. See www.allapi.net for sample code.
Second, only dll COM servers need to be registered. In other words, regular dll's that simply output functions (like kernel32.dll) do not have to be registered. You will always get an error trying to register this type of dll.
-
Im pretty sure they were not already registered.
Is they a way of viewing dlls you have registered, like a prog that will list all registered dlls in your system?
-
OLEVIEW.EXE will do what you want - www.msdn.microft.com for download.
It's easier just to try to unregister them: regsvr32 /u filename
-
Cheers Guys.
The dlls I was trying are standard, I will stop trying to register unregisterable files :)