Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionrealloc assumption...? Pin
alex.barylski29-Oct-02 19:42
alex.barylski29-Oct-02 19:42 
AnswerRe: realloc assumption...? Pin
Stephane Rodriguez.29-Oct-02 20:14
Stephane Rodriguez.29-Oct-02 20:14 
GeneralRe: realloc assumption...? Pin
alex.barylski30-Oct-02 9:30
alex.barylski30-Oct-02 9:30 
GeneralRe: realloc assumption...? Pin
Stephane Rodriguez.30-Oct-02 9:42
Stephane Rodriguez.30-Oct-02 9:42 
GeneralSpy ++++ Pin
Shamoon29-Oct-02 19:23
Shamoon29-Oct-02 19:23 
GeneralRe: Spy ++++ Pin
dabs29-Oct-02 20:09
dabs29-Oct-02 20:09 
GeneralRe: Spy ++++ Pin
567890123430-Oct-02 2:32
567890123430-Oct-02 2:32 
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 

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.