Click here to Skip to main content
15,921,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreating a thread Pin
laiju15-Dec-05 23:54
laiju15-Dec-05 23:54 
AnswerRe: Creating a thread Pin
Arman S.16-Dec-05 0:11
Arman S.16-Dec-05 0:11 
GeneralRe: Creating a thread Pin
Arman S.16-Dec-05 0:21
Arman S.16-Dec-05 0:21 
GeneralRe: Creating a thread Pin
toxcct16-Dec-05 0:35
toxcct16-Dec-05 0:35 
GeneralRe: Creating a thread Pin
Arman S.16-Dec-05 1:02
Arman S.16-Dec-05 1:02 
GeneralRe: Creating a thread Pin
laiju16-Dec-05 1:02
laiju16-Dec-05 1:02 
GeneralRe: Creating a thread Pin
Arman S.16-Dec-05 1:08
Arman S.16-Dec-05 1:08 
GeneralRe: Creating a thread Pin
toxcct16-Dec-05 1:49
toxcct16-Dec-05 1:49 
when a function is a class member (except static ones), it receives an implicit parameter which is the this pointer. this implicit parameter changes the signature of what you see of your function in design mode...

for instance :
class A {
  public:
    void foo(int);
};

just considering the case of this function, its signature is in fact :
void A::foo(A*, int);


so, as AfxBeginThread() receives a function pointer, this parameter must implement a particuliar function signature, it must be exactly as you defined it. this is why your function must be global, or at least static (because static members don't know specific instances of a class - they are also known as class function)...

hope that helps...



TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0]
QuestionActiveX programming Pin
a_david12315-Dec-05 23:24
a_david12315-Dec-05 23:24 
Questionbmp's Pin
V.15-Dec-05 22:28
professionalV.15-Dec-05 22:28 
AnswerRe: bmp's Pin
ThatsAlok15-Dec-05 23:54
ThatsAlok15-Dec-05 23:54 
GeneralRe: bmp's Pin
V.16-Dec-05 0:01
professionalV.16-Dec-05 0:01 
Questionhow to use "resource only dll" Pin
kotiramkoteswararao15-Dec-05 22:23
kotiramkoteswararao15-Dec-05 22:23 
AnswerRe: how to use "resource only dll" Pin
David Crow16-Dec-05 3:05
David Crow16-Dec-05 3:05 
QuestionProcess-wide API spying - Source Code? Pin
devvvy15-Dec-05 22:01
devvvy15-Dec-05 22:01 
Questionhelp me pls Pin
Petiao15-Dec-05 21:56
Petiao15-Dec-05 21:56 
JokeRe: help me pls Pin
toxcct15-Dec-05 22:45
toxcct15-Dec-05 22:45 
JokeRe: help me pls Pin
Eytukan16-Dec-05 2:24
Eytukan16-Dec-05 2:24 
GeneralRe: help me pls Pin
toxcct16-Dec-05 2:54
toxcct16-Dec-05 2:54 
GeneralRe: help me pls Pin
Eytukan16-Dec-05 3:25
Eytukan16-Dec-05 3:25 
AnswerRe: help me pls Pin
Sheng Jiang 蒋晟16-Dec-05 5:07
Sheng Jiang 蒋晟16-Dec-05 5:07 
AnswerRe: help me pls Pin
Petiao18-Dec-05 19:46
Petiao18-Dec-05 19:46 
QuestionHow to generate clock with higher freq at LPT ? Pin
quangpk15-Dec-05 21:21
quangpk15-Dec-05 21:21 
AnswerRe: How to generate clock with higher freq at LPT ? Pin
Cedric Moonen15-Dec-05 21:40
Cedric Moonen15-Dec-05 21:40 
QuestionCan anyone help me with jms call in c language! Pin
white jungle15-Dec-05 21:03
white jungle15-Dec-05 21:03 

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.