Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ ATL COM
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 23-Jul-10 1:23am

1 solution

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

Solution 1

With difficulty.
 
See Here if it helps[^]
  Permalink  
Comments
scankevin at 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 at 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
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 23 Jul 2010
Copyright © CodeProject, 1999-2014
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