unloading a dll

This is a discussion on unloading a dll within the C++ Programming forums, part of the General Programming Boards category; can someone tell me what the code would be to unload a dll....

  1. #1
    Unregistered
    Guest

    unloading a dll

    can someone tell me what the code would be to unload a dll.

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    114
    Code:
    HINSTANCE hLibrary = LoadLibrary("thedarn.dll"); // Load the DLL
    FreeLibrary(hLibrary);         // Unload the DLL

  3. #3
    Unregistered
    Guest
    cool, thank you

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  3. Unloading a dll
    By zMan in forum C# Programming
    Replies: 1
    Last Post: 11-09-2004, 11:55 PM
  4. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 04:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21