Thread: Using a dll to call a dialog in OnInitDialog of another.

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    31

    Using a dll to call a dialog in OnInitDialog of another.

    I'm trying to use a dll file, I added the header file to the project put the dll and lib in the project directiory, then included the .h file but when I try to use a function I'm getting ---> TraderDialog.obj : error LNK2019: unresolved external symbol __imp__sgoCreateClientDialog referenced in function "protected: virtual int __thiscall TraderDialog::OnInitDialog(void)" (?OnInitDialog@TraderDialog@@MAEHXZ)

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    You still need to link to the library. Add the DLL's .lib file to the list of external libraries in your project's linker settings.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dialog Box from within a dll without MFC
    By tonyxxy in forum C++ Programming
    Replies: 9
    Last Post: 01-31-2009, 07:49 PM
  2. How to create DLL file in C language and call from C and VB
    By karthickbabu in forum C Programming
    Replies: 2
    Last Post: 10-24-2007, 07:50 AM
  3. Multiple types in lists, vectors or arrays.
    By megatron09 in forum C++ Programming
    Replies: 20
    Last Post: 08-31-2006, 01:54 PM
  4. Call procedure in DLL
    By Mithoric in forum Windows Programming
    Replies: 4
    Last Post: 01-04-2004, 08:17 AM
  5. Pls help me to do this project in C I need source code
    By sureshmenon74 in forum C Programming
    Replies: 4
    Last Post: 10-04-2001, 06:57 AM