Thread: Dynamic import

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    329

    Dynamic import

    I'm importing a library using import "c:\\libraryname.exe", and this works OK.
    Is there a way to do this at runtime?
    What i want, is to detect the existence of the library, and start one out of two threads depending on what external lib is present on the system.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    31
    Well I'm not exactly sure what you are doing but the Win32 API supplies several methods such as:

    LoadLibrary()
    LoadLibraryEx()

    And you can use GetProcAddress() and such to use functions.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    So i'll have to import manually?
    Will that work with DCOM objects?

    Ok, i think i'll stick to static linking...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dynamic array/vector help
    By Cpro in forum C++ Programming
    Replies: 8
    Last Post: 04-05-2008, 03:30 PM
  2. File import opinion.
    By Kennedy in forum Tech Board
    Replies: 2
    Last Post: 09-22-2006, 05:52 PM
  3. Identify dynamic IP address of network device
    By BobS0327 in forum Tech Board
    Replies: 2
    Last Post: 02-21-2006, 01:49 PM
  4. operator overloading and dynamic memory program
    By jlmac2001 in forum C++ Programming
    Replies: 3
    Last Post: 04-06-2003, 11:51 PM
  5. Dynamic memory confusion
    By ripper079 in forum C++ Programming
    Replies: 5
    Last Post: 11-04-2002, 06:15 PM