Click here to Skip to main content
15,916,318 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralClass in Dll Pin
stevenson29-Oct-02 19:16
stevenson29-Oct-02 19:16 
Hi, This is a problem about DLL and EXE. The DLL was past debugging and made a *.dll and *.lib. Everything is wrong in Exe.


In DLL:
First, I made a class named CDecoder.
Inside it I declare member m_FormatTable

CFormatTable m_FormatTable;


I followed wizard to make a class CFormatTable which wrapped a table named "Format" in my database.
CDecoder's member function Initialize() use CFormatTable to load necessary data from the database.

In Exe,

I wrote:

CDecoder Decoder;
Decoder.Initialize();


and got the following:

------------------Configuration: HydroExe - Win32 Debug--------------------
Linking...
   Creating library Debug/HydroExe.lib and object Debug/HydroExe.exp
Decoder.obj : error LNK2001: unresolved external symbol "public: __thiscall CFormatTable::CFormatTable(class CDatabase *)" (??0CFormatTable@@QAE@PAVCDatabase@@@Z)
Debug/HydroExe.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

HydroExe.exe - 2 error(s), 0 warning(s)
What's wrong?

Extreme programming. Do the No.1
GeneralRe: Class in Dll Pin
Bugra Barin29-Oct-02 20:06
Bugra Barin29-Oct-02 20:06 
GeneralRe: Class in Dll Pin
Bugra Barin29-Oct-02 20:08
Bugra Barin29-Oct-02 20:08 
GeneralFirst error for the night.... Pin
Nick Parker29-Oct-02 17:06
protectorNick Parker29-Oct-02 17:06 
GeneralRe: First error for the night.... Pin
Anatari29-Oct-02 17:28
Anatari29-Oct-02 17:28 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 17:39
protectorNick Parker29-Oct-02 17:39 
GeneralRe: First error for the night.... Pin
Anatari29-Oct-02 17:48
Anatari29-Oct-02 17:48 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 17:50
protectorNick Parker29-Oct-02 17:50 
GeneralRe: First error for the night.... Pin
Christian Graus29-Oct-02 18:21
protectorChristian Graus29-Oct-02 18:21 
GeneralRe: First error for the night.... Pin
Nick Parker29-Oct-02 18:28
protectorNick Parker29-Oct-02 18:28 
GeneralGetWindowLong problem Pin
Dan_P29-Oct-02 16:55
Dan_P29-Oct-02 16:55 
GeneralRe: GetWindowLong problem Pin
Paul M Watt29-Oct-02 17:12
mentorPaul M Watt29-Oct-02 17:12 
GeneralPlease Help!! File Transfer!!! Pin
Pett29-Oct-02 16:22
Pett29-Oct-02 16:22 
GeneralRe: Please Help!! File Transfer!!! Pin
Christian Graus29-Oct-02 18:24
protectorChristian Graus29-Oct-02 18:24 
GeneralRe: Please Help!! File Transfer!!! Pin
Pett30-Oct-02 1:28
Pett30-Oct-02 1:28 
Questionactive window hwnd? Pin
imran_rafique29-Oct-02 15:38
imran_rafique29-Oct-02 15:38 
AnswerRe: active window hwnd? Pin
Christian Graus29-Oct-02 15:55
protectorChristian Graus29-Oct-02 15:55 
GeneralRe: active window hwnd? Pin
imran_rafique29-Oct-02 16:11
imran_rafique29-Oct-02 16:11 
GeneralCompiling questions Pin
00zero29-Oct-02 15:14
00zero29-Oct-02 15:14 
GeneralRe: Compiling questions Pin
Christian Graus29-Oct-02 15:22
protectorChristian Graus29-Oct-02 15:22 
GeneralAdding a Toolbar Pin
Anonymous29-Oct-02 14:08
Anonymous29-Oct-02 14:08 
GeneralRe: Adding a Toolbar Pin
Christian Graus29-Oct-02 15:23
protectorChristian Graus29-Oct-02 15:23 
GeneralIM Client Pin
WSK29-Oct-02 14:00
WSK29-Oct-02 14:00 
GeneralRe: IM Client Pin
Paul Ingles29-Oct-02 14:26
Paul Ingles29-Oct-02 14:26 
GeneralSDI Question Pin
Cerb29-Oct-02 13:54
Cerb29-Oct-02 13:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.