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

This is a discussion on Using a dll to call a dialog in OnInitDialog of another. within the Windows Programming forums, part of the Platform Specific Boards category; I'm trying to use a dll file, I added the header file to the project put the dll and lib ...

  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,265
    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, 08:50 AM
  3. Multiple types in lists, vectors or arrays.
    By megatron09 in forum C++ Programming
    Replies: 20
    Last Post: 08-31-2006, 02: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, 07:57 AM

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