Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std::map problem Pin
Bob Stanneveld9-Jun-05 0:26
Bob Stanneveld9-Jun-05 0:26 
GeneralRe: std::map problem Pin
grasstafari9-Jun-05 0:25
grasstafari9-Jun-05 0:25 
GeneralPOST string to .asp Pin
dex_ter118-Jun-05 23:24
dex_ter118-Jun-05 23:24 
GeneralRe: POST string to .asp Pin
Bob Stanneveld8-Jun-05 23:54
Bob Stanneveld8-Jun-05 23:54 
GeneralRe: POST string to .asp Pin
ThatsAlok9-Jun-05 1:05
ThatsAlok9-Jun-05 1:05 
GeneralRe: POST string to .asp Pin
dex_ter119-Jun-05 15:16
dex_ter119-Jun-05 15:16 
GeneralRe: POST string to .asp Pin
ThatsAlok9-Jun-05 18:21
ThatsAlok9-Jun-05 18:21 
GeneralLNK2001 Error Using Edit Control Variable in static function Pin
CNewbie8-Jun-05 23:03
CNewbie8-Jun-05 23:03 
I searched for my problem and found other who had it, but didn't find an answer.

I am getting "LNK2001: unresolved External Symbol" in my MFC Dialog Box Program. Here is my situation:

The unresolved symbol is a CString that belongs to my Edit Control. It is declared as a Public variable in my main dialog class in "dialog1.h". Now this is being used within a static member function (in the same class) which is declared in "dialog1.h" (The function is a Seperate Thread being called by AfxBeginThread() from "dialog1.cpp". The actually Function however is in "dialog2.cpp". The CString is being used within this function in "dialog2.cpp". Both "dialog1.cpp" and "dialog2.cpp" have includes for "dialog1.h", so I do not see the reason why this is happening.

I thought of making this CString external, but I am not sure how to do it when it is a member of a class.

Rundown:

CString Variable: Declared in dialog1.h and initialized in dialog2.cpp
static member function: declared in dialog1.h and initialized in dialog2.cpp
Static member function is called from dialog1.cpp using AfxBeginThread() API.

If anyone has any suggesstions that would be great.
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
GDavy8-Jun-05 23:19
GDavy8-Jun-05 23:19 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 0:03
Bob Stanneveld9-Jun-05 0:03 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 0:45
CNewbie9-Jun-05 0:45 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 1:12
Bob Stanneveld9-Jun-05 1:12 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 1:19
CNewbie9-Jun-05 1:19 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 1:29
Bob Stanneveld9-Jun-05 1:29 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 1:23
CNewbie9-Jun-05 1:23 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 1:30
Bob Stanneveld9-Jun-05 1:30 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
David Crow9-Jun-05 2:29
David Crow9-Jun-05 2:29 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 5:09
CNewbie9-Jun-05 5:09 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
David Crow9-Jun-05 5:16
David Crow9-Jun-05 5:16 
GeneralModeless dialogs and Edit Boxes Pin
Kiriko8-Jun-05 22:05
Kiriko8-Jun-05 22:05 
GeneralRe: Modeless dialogs and Edit Boxes Pin
GDavy8-Jun-05 22:53
GDavy8-Jun-05 22:53 
GeneralRe: Modeless dialogs and Edit Boxes Pin
Kiriko9-Jun-05 0:28
Kiriko9-Jun-05 0:28 
GeneralRe: Modeless dialogs and Edit Boxes Pin
David Crow9-Jun-05 2:32
David Crow9-Jun-05 2:32 
GeneralRe: Modeless dialogs and Edit Boxes Pin
Kiriko9-Jun-05 6:19
Kiriko9-Jun-05 6:19 
GeneralRe: Modeless dialogs and Edit Boxes Pin
David Crow10-Jun-05 5:59
David Crow10-Jun-05 5:59 

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.