Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUse inline member function to refer different levels of classes. [modified] Pin
CodingLover24-Jan-08 19:45
CodingLover24-Jan-08 19:45 
GeneralRe: Use inline member function to refer different levels of classes. Pin
Don Box24-Jan-08 19:55
Don Box24-Jan-08 19:55 
GeneralRe: Use inline member function to refer different levels of classes. Pin
CodingLover24-Jan-08 20:12
CodingLover24-Jan-08 20:12 
GeneralRe: Use inline member function to refer different levels of classes. Pin
Cedric Moonen24-Jan-08 20:38
Cedric Moonen24-Jan-08 20:38 
GeneralRe: Use inline member function to refer different levels of classes. Pin
CodingLover24-Jan-08 20:44
CodingLover24-Jan-08 20:44 
GeneralRe: Use inline member function to refer different levels of classes. Pin
Cedric Moonen24-Jan-08 20:50
Cedric Moonen24-Jan-08 20:50 
GeneralRe: Use inline member function to refer different levels of classes. Pin
CodingLover24-Jan-08 21:09
CodingLover24-Jan-08 21:09 
GeneralRe: Use inline member function to refer different levels of classes. Pin
Cedric Moonen24-Jan-08 21:23
Cedric Moonen24-Jan-08 21:23 
Sorry, but it is very confusing trying to understand you Unsure | :~
Why do you talk about inline functions if it has nothing to do with the problem and if you can guarantee that it works fine. You really need to explain your problem in a way that it is clear for people that don't see your screen.

Anyway here is your problem: you have defined a class CMsgRecorder in which you have a function (SetGroupState). You use this function somewhere else in the code and it compiles without error but fail for the linking. This is important because it tells you that the function declaration is found (so there is no problem with include files whatsoever, otherwise it would fail at compilation). The problem is that when the linker is doing its job, it cannot find a body (or a definition) for the function. You showed me the body of the function, so you've written one. The only possible 'solution' I have in mind is that you actually forgot to add the cpp file of CMsgRecorder to your project (meaning that this file is not compiled and then of course the linker cannot find the function). Are you sure it is contained in the files of your project ?

Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: Use inline member function to refer different levels of classes. Pin
CodingLover24-Jan-08 21:49
CodingLover24-Jan-08 21:49 
GeneralRe: Use inline member function to refer different levels of classes. Pin
Cedric Moonen24-Jan-08 22:07
Cedric Moonen24-Jan-08 22:07 
GeneralRe: Use inline member function to refer different levels of classes. Pin
CodingLover24-Jan-08 22:22
CodingLover24-Jan-08 22:22 
GeneralRe: Use inline member function to refer different levels of classes. Pin
Cedric Moonen24-Jan-08 22:32
Cedric Moonen24-Jan-08 22:32 
GeneralRe: Use inline member function to refer different levels of classes. Pin
CodingLover24-Jan-08 22:36
CodingLover24-Jan-08 22:36 
GeneralRe: Use inline member function to refer different levels of classes. Pin
Cedric Moonen24-Jan-08 22:42
Cedric Moonen24-Jan-08 22:42 
GeneralRe: Use inline member function to refer different levels of classes. Pin
CodingLover24-Jan-08 22:47
CodingLover24-Jan-08 22:47 
GeneralIssues with std::vector Pin
Waldermort24-Jan-08 19:00
Waldermort24-Jan-08 19:00 
GeneralRe: Issues with std::vector Pin
Stephen Hewitt24-Jan-08 19:18
Stephen Hewitt24-Jan-08 19:18 
GeneralRe: Issues with std::vector Pin
Waldermort24-Jan-08 19:22
Waldermort24-Jan-08 19:22 
GeneralShellExecute Pin
Paulraj G24-Jan-08 18:42
Paulraj G24-Jan-08 18:42 
GeneralRe: ShellExecute Pin
Naveen24-Jan-08 18:44
Naveen24-Jan-08 18:44 
GeneralRe: ShellExecute Pin
Paulraj G24-Jan-08 18:52
Paulraj G24-Jan-08 18:52 
GeneralRe: ShellExecute Pin
Don Box24-Jan-08 18:58
Don Box24-Jan-08 18:58 
GeneralRe: ShellExecute Pin
Paulraj G24-Jan-08 19:30
Paulraj G24-Jan-08 19:30 
GeneralRe: ShellExecute Pin
Stephen Hewitt24-Jan-08 19:39
Stephen Hewitt24-Jan-08 19:39 
GeneralRe: ShellExecute Pin
Paulraj G24-Jan-08 19:43
Paulraj G24-Jan-08 19:43 

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.