Click here to Skip to main content
15,880,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Pin
rp_suman27-Jan-08 20:43
rp_suman27-Jan-08 20:43 
GeneralRe: C++ Pin
Maxwell Chen27-Jan-08 21:06
Maxwell Chen27-Jan-08 21:06 
GeneralRe: C++ Pin
rp_suman27-Jan-08 21:12
rp_suman27-Jan-08 21:12 
GeneralWorking with two classes Pin
CodingLover27-Jan-08 17:03
CodingLover27-Jan-08 17:03 
GeneralRe: Working with two classes Pin
Nitheesh George27-Jan-08 17:12
Nitheesh George27-Jan-08 17:12 
GeneralRe: Working with two classes Pin
CodingLover27-Jan-08 17:20
CodingLover27-Jan-08 17:20 
GeneralRe: Working with two classes Pin
Nitheesh George27-Jan-08 17:37
Nitheesh George27-Jan-08 17:37 
GeneralRe: Working with two classes Pin
CodingLover27-Jan-08 17:41
CodingLover27-Jan-08 17:41 
Ok, I can separate by a comma and do it. But then I comes with a constructor issue. I can't change my constructor now.

So I change my plan, simply used a pointer to the other class as follows. Include the CMsgRecorder header file in the ShowInfo header file.

void CRfSvrDriver::ShowInfo(CMsgRecorder* msgRec)
{
msgRec->SetGroupState('R');
}


But it gives a compile error.

error LNK2019: unresolved external symbol "public: void __thiscall CMsgRecorder::SetGroupState(char)" 
(?SetGroupState@CMsgRecorder@@QAEXD@Z) referenced in function "public: int __thiscall 
CRfSvrDriver::ProcessCommand(class ATL::CStringT<char,class strtraitmfc_dll<char,class="" atl::chtraitscrt<char=""> > 
>,unsigned int,class CMsgRecorder *)" 
(?ProcessCommand@CRfSvrDriver@@QAEHV?$CStringT@DV?$StrTraitMFC_DLL@DV?$
ChTraitsCRT@D@ATL@@@@@ATL@@IPAVCMsgRecorder@@@Z)
</char,class>


I hope it is linker error, but all functions are declared correctly. You have any suggestion for me on this.

I appreciate your help all the time...
Eranga Smile | :)

GeneralRe: Working with two classes Pin
Nitheesh George27-Jan-08 18:00
Nitheesh George27-Jan-08 18:00 
GeneralRe: Working with two classes Pin
CodingLover27-Jan-08 18:06
CodingLover27-Jan-08 18:06 
GeneralRe: Working with two classes Pin
Nitheesh George27-Jan-08 18:17
Nitheesh George27-Jan-08 18:17 
GeneralRe: Working with two classes Pin
CodingLover27-Jan-08 18:48
CodingLover27-Jan-08 18:48 
GeneralRe: Working with two classes Pin
sheshidar27-Jan-08 17:42
sheshidar27-Jan-08 17:42 
Questionexception from C function? Pin
George_George27-Jan-08 16:11
George_George27-Jan-08 16:11 
AnswerRe: exception from C function? Pin
Maxwell Chen27-Jan-08 18:13
Maxwell Chen27-Jan-08 18:13 
GeneralRe: exception from C function? Pin
George_George27-Jan-08 18:23
George_George27-Jan-08 18:23 
GeneralRe: exception from C function? Pin
Maxwell Chen27-Jan-08 18:57
Maxwell Chen27-Jan-08 18:57 
GeneralRe: exception from C function? Pin
George_George27-Jan-08 19:10
George_George27-Jan-08 19:10 
GeneralRe: exception from C function? Pin
Maxwell Chen27-Jan-08 19:27
Maxwell Chen27-Jan-08 19:27 
GeneralRe: exception from C function? Pin
George_George27-Jan-08 19:34
George_George27-Jan-08 19:34 
Generalnew invokes VirtualAlloc Pin
George_George27-Jan-08 15:59
George_George27-Jan-08 15:59 
Generalhelp Pin
gentleguy27-Jan-08 15:47
gentleguy27-Jan-08 15:47 
GeneralRe: help Pin
Luc Pattyn27-Jan-08 16:23
sitebuilderLuc Pattyn27-Jan-08 16:23 
GeneralRe: help Pin
Cranky27-Jan-08 22:36
Cranky27-Jan-08 22:36 
QuestionPrinting text fields onto a form Pin
Henri27-Jan-08 13:36
Henri27-Jan-08 13:36 

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.