Dynamic import

This is a discussion on Dynamic import within the Windows Programming forums, part of the Platform Specific Boards category; I'm importing a library using import "c:\libraryname.exe", and this works OK. Is there a way to do this at runtime? ...

  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, 04:30 PM
  2. File import opinion.
    By Kennedy in forum Tech Board
    Replies: 2
    Last Post: 09-22-2006, 06: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-07-2003, 12:51 AM
  5. Dynamic memory confusion
    By ripper079 in forum C++ Programming
    Replies: 5
    Last Post: 11-04-2002, 06:15 PM

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