Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: unresolved external symbol Pin
Blake Miller15-Jun-06 4:50
Blake Miller15-Jun-06 4:50 
QuestionWeird linker error message... Pin
Eytukan15-Jun-06 3:31
Eytukan15-Jun-06 3:31 
AnswerRe: Weird linker error message... Pin
Chris Losinger15-Jun-06 3:34
professionalChris Losinger15-Jun-06 3:34 
GeneralRe: Weird linker error message... Pin
Eytukan15-Jun-06 3:39
Eytukan15-Jun-06 3:39 
GeneralRe: Weird linker error message... Pin
Cedric Moonen15-Jun-06 3:51
Cedric Moonen15-Jun-06 3:51 
GeneralRe: Weird linker error message... Pin
Chris Losinger15-Jun-06 3:59
professionalChris Losinger15-Jun-06 3:59 
GeneralRe: Weird linker error message... Pin
Eytukan15-Jun-06 4:04
Eytukan15-Jun-06 4:04 
AnswerRe: Weird linker error message... Pin
Viorel.15-Jun-06 3:39
Viorel.15-Jun-06 3:39 
When you declare a static data member (in *.h file), you should also implement it in the *.cpp file:

// MyClass.h file:
//
class MyClass
{
    static int x; 
};
//
// MyClass.cpp file:
//
int MyClass::x; // this line you missed

So you missed to allocate the space for your static variable. Just a declaration of static data members is not enough.
QuestionRe: Weird linker error message... Pin
David Crow15-Jun-06 3:40
David Crow15-Jun-06 3:40 
AnswerRe: Weird linker error message... Pin
Eytukan15-Jun-06 3:45
Eytukan15-Jun-06 3:45 
GeneralRe: Weird linker error message... Pin
David Crow15-Jun-06 3:47
David Crow15-Jun-06 3:47 
AnswerYou were all right! Pin
Eytukan15-Jun-06 4:01
Eytukan15-Jun-06 4:01 
Questioncolor in unix/dos?? Pin
Larsson15-Jun-06 3:30
Larsson15-Jun-06 3:30 
AnswerRe: color in unix/dos?? Pin
James R. Twine15-Jun-06 3:34
James R. Twine15-Jun-06 3:34 
AnswerRe: color in unix/dos?? Pin
Eytukan15-Jun-06 3:35
Eytukan15-Jun-06 3:35 
AnswerRe: color in unix/dos?? Pin
Eytukan15-Jun-06 3:44
Eytukan15-Jun-06 3:44 
QuestionHex in Edit Pin
Try15-Jun-06 3:12
Try15-Jun-06 3:12 
AnswerRe: Hex in Edit Pin
David Crow15-Jun-06 3:22
David Crow15-Jun-06 3:22 
AnswerRe: Hex in Edit Pin
Eytukan15-Jun-06 3:25
Eytukan15-Jun-06 3:25 
GeneralRe: Hex in Edit Pin
toxcct13-Sep-06 1:56
toxcct13-Sep-06 1:56 
GeneralRe: Hex in Edit Pin
Eytukan13-Sep-06 2:03
Eytukan13-Sep-06 2:03 
GeneralRe: Hex in Edit Pin
toxcct13-Sep-06 2:06
toxcct13-Sep-06 2:06 
AnswerRe: Hex in Edit Pin
James R. Twine15-Jun-06 3:30
James R. Twine15-Jun-06 3:30 
Questionmenu disable [modified] Pin
yogendra kaushik15-Jun-06 2:18
yogendra kaushik15-Jun-06 2:18 
AnswerRe: menu disable Pin
Naveen15-Jun-06 2:33
Naveen15-Jun-06 2:33 

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.