Click here to Skip to main content
15,881,380 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to create new thread Pin
hemlat14-Apr-09 3:39
hemlat14-Apr-09 3:39 
AnswerRe: how to create new thread Pin
Divyang Mithaiwala14-Apr-09 3:53
Divyang Mithaiwala14-Apr-09 3:53 
GeneralRe: how to create new thread Pin
hemlat14-Apr-09 4:01
hemlat14-Apr-09 4:01 
GeneralRe: how to create new thread Pin
Divyang Mithaiwala14-Apr-09 4:04
Divyang Mithaiwala14-Apr-09 4:04 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 4:11
professionalRajesh R Subramanian14-Apr-09 4:11 
GeneralRe: how to create new thread Pin
ThatsAlok14-Apr-09 20:20
ThatsAlok14-Apr-09 20:20 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 4:17
professionalRajesh R Subramanian14-Apr-09 4:17 
AnswerRe: how to create new thread Pin
Divyang Mithaiwala14-Apr-09 4:02
Divyang Mithaiwala14-Apr-09 4:02 
hemlat wrote:
UINT CTestcycleDlg::pfnThreadProc(LPVOID pParam )

Your method which will work as thread & belong to class then it must be define static. But is method is not belong to any class then it is no matter to have static.


hemlat wrote:
AfxBeginThread( CRuntimeClass* pfnThreadProc,LPVOID pParam,

When you pass pointer/name of method use CTestcycleDlg::pfnThreadProc.

I hope this will work for your code.



Do not trust a computer...
Always check what computer is doing

regards,
Divyang Mithaiwala
Software Engineer

AnswerRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 4:19
professionalRajesh R Subramanian14-Apr-09 4:19 
QuestionRe: how to create new thread Pin
David Crow14-Apr-09 4:37
David Crow14-Apr-09 4:37 
AnswerRe: how to create new thread Pin
hemlat14-Apr-09 20:34
hemlat14-Apr-09 20:34 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 20:39
professionalRajesh R Subramanian14-Apr-09 20:39 
GeneralRe: how to create new thread Pin
hemlat14-Apr-09 21:01
hemlat14-Apr-09 21:01 
GeneralRe: how to create new thread Pin
hemlat14-Apr-09 22:03
hemlat14-Apr-09 22:03 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 23:28
professionalRajesh R Subramanian14-Apr-09 23:28 
GeneralRe: how to create new thread Pin
hemlat15-Apr-09 20:41
hemlat15-Apr-09 20:41 
GeneralRe: how to create new thread Pin
David Crow15-Apr-09 2:47
David Crow15-Apr-09 2:47 
AnswerRe: how to create new thread Pin
ThatsAlok14-Apr-09 20:19
ThatsAlok14-Apr-09 20:19 
QuestionTwo top most windows, one always above the other Pin
Member 449830414-Apr-09 3:38
Member 449830414-Apr-09 3:38 
AnswerRe: Two top most windows, one always above the other Pin
Iain Clarke, Warrior Programmer14-Apr-09 5:42
Iain Clarke, Warrior Programmer14-Apr-09 5:42 
GeneralRe: Two top most windows, one always above the other Pin
Member 449830414-Apr-09 7:13
Member 449830414-Apr-09 7:13 
GeneralRe: Two top most windows, one always above the other Pin
Iain Clarke, Warrior Programmer14-Apr-09 8:51
Iain Clarke, Warrior Programmer14-Apr-09 8:51 
GeneralRe: Two top most windows, one always above the other Pin
Member 449830414-Apr-09 9:01
Member 449830414-Apr-09 9:01 
Questionpower point automation. Pin
SRKSHOME14-Apr-09 2:49
SRKSHOME14-Apr-09 2:49 
AnswerRe: power point automation. Pin
VC++Maniac14-Apr-09 2:55
VC++Maniac14-Apr-09 2:55 

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.