Click here to Skip to main content
15,885,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to learn ATL&COM using a book named "ATL Developer's Guide"
The chapter two has a project.
The code like this .
; Server.def : Declares the module parameters for the DLL.
;
LIBRARY      "SERVER"
DESCRIPTION  'SERVER Windows Dynamic Link Library'
EXPORTS
    ; Explicit exports can go here
    DllGetClassObject   PRIVATE
    DllCanUnloadNow     PRIVATE
    DllRegisterServer   PRIVATE



I had registered the dll successfully. But When I try to unregister it , the exception tell me
"The module E:\Server.dll was loaded but the entry-point DllUnregisterServer was not found.Make sure that E:\Server.dll is a valid DLL or OCX file and then try again "

I already used OleView checking the dll .
How can i unregister the dll?
thanks.
Posted

1 solution

With difficulty.

See Here if it helps[^]
 
Share this answer
 
Comments
scankevin 23-Jul-10 6:44am    
I notice this message "Your DLL must implement DllRegisterServer and DllUnregisterServer".It's mean that i can't unregister the dll,isn't?
Sauro Viti 23-Jul-10 7:06am    
Yes, it is: if your DLL doesn't implement DllUnregisterServer then the only way to unregister it is to know all the entries in the Windows registry that you should manually remove (and it is a nightmare).
Since you have the source code, the best is to add the DllUnregisterServer to your library, compile it again and then call regsvr32 /r filename.dll

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900