Click here to Skip to main content
13,148,427 members (62,383 online)
Rate this:
Please Sign up or sign in to vote.
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.
DESCRIPTION  'SERVER Windows Dynamic Link Library'
    ; 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?
Posted 23-Jul-10 0:23am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

With difficulty.

See Here if it helps[^]
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170924.2 | Last Updated 23 Jul 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100