Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Registry Viewing Problem Pin
David Crow6-Mar-07 3:01
David Crow6-Mar-07 3:01 
Questionhow to run my exe continuously in background Pin
James_Programmer5-Mar-07 23:45
James_Programmer5-Mar-07 23:45 
AnswerRe: how to run my exe continuously in background Pin
_AnsHUMAN_ 5-Mar-07 23:51
_AnsHUMAN_ 5-Mar-07 23:51 
GeneralRe: how to run my exe continuously in background Pin
James_Programmer6-Mar-07 0:22
James_Programmer6-Mar-07 0:22 
GeneralRe: how to run my exe continuously in background Pin
James R. Twine6-Mar-07 1:21
James R. Twine6-Mar-07 1:21 
GeneralRe: how to run my exe continuously in background Pin
James_Programmer6-Mar-07 1:37
James_Programmer6-Mar-07 1:37 
QuestionThead Error Pin
Programm3r5-Mar-07 23:18
Programm3r5-Mar-07 23:18 
AnswerRe: Thead Error Pin
Cedric Moonen5-Mar-07 23:24
Cedric Moonen5-Mar-07 23:24 
It is because global functions and member functions of a class don't have the same prototype. For the member functions, there is an implicit parameter that is passed which is the 'this' parameter (identifies to which instance of the class it belongs to).

So, that's why your compiler complains. A solution is to use a static function: in that case, the member function doesn't belong to a specific instance of the class but is shared across all instances. In that case, the 'this' parameter is not passed but that also means that you can only access static members of your class in your static function.



Cédric Moonen
Software developer

Charting control [v1.1]

GeneralRe: Thead Error Pin
Programm3r6-Mar-07 0:15
Programm3r6-Mar-07 0:15 
AnswerRe: Thead Error Pin
David Crow6-Mar-07 3:04
David Crow6-Mar-07 3:04 
QuestionNot Responding Message Pin
James_Programmer5-Mar-07 22:27
James_Programmer5-Mar-07 22:27 
AnswerRe: Not Responding Message Pin
Cedric Moonen5-Mar-07 22:39
Cedric Moonen5-Mar-07 22:39 
GeneralRe: Not Responding Message Pin
James_Programmer5-Mar-07 22:46
James_Programmer5-Mar-07 22:46 
GeneralRe: Not Responding Message Pin
Cedric Moonen5-Mar-07 22:54
Cedric Moonen5-Mar-07 22:54 
AnswerRe: Not Responding Message Pin
James_Programmer5-Mar-07 23:32
James_Programmer5-Mar-07 23:32 
GeneralRe: Not Responding Message Pin
David Crow6-Mar-07 3:06
David Crow6-Mar-07 3:06 
GeneralRe: Not Responding Message Pin
James_Programmer6-Mar-07 19:06
James_Programmer6-Mar-07 19:06 
GeneralRe: Not Responding Message Pin
David Crow7-Mar-07 2:40
David Crow7-Mar-07 2:40 
GeneralRe: Not Responding Message Pin
James R. Twine6-Mar-07 0:57
James R. Twine6-Mar-07 0:57 
GeneralRe: Not Responding Message Pin
James_Programmer6-Mar-07 1:19
James_Programmer6-Mar-07 1:19 
GeneralRe: Not Responding Message Pin
James R. Twine6-Mar-07 1:27
James R. Twine6-Mar-07 1:27 
GeneralRe: Not Responding Message Pin
James_Programmer6-Mar-07 1:39
James_Programmer6-Mar-07 1:39 
Questionview problem Pin
sheetal_065-Mar-07 22:24
sheetal_065-Mar-07 22:24 
AnswerRe: view problem Pin
Cedric Moonen5-Mar-07 22:30
Cedric Moonen5-Mar-07 22:30 
Questionhow to find the character width? Pin
kotakmayurrMCA5-Mar-07 22:23
kotakmayurrMCA5-Mar-07 22:23 

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.