Click here to Skip to main content
16,011,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: ON_COMMAND_EX Pin
David Crow19-Sep-07 2:40
David Crow19-Sep-07 2:40 
AnswerRe: ON_COMMAND_EX Pin
Rockone19-Sep-07 23:45
Rockone19-Sep-07 23:45 
AnswerRe: ON_COMMAND_EX Pin
Mark Salsbery18-Sep-07 6:14
Mark Salsbery18-Sep-07 6:14 
GeneralRe: ON_COMMAND_EX Pin
Rockone18-Sep-07 16:42
Rockone18-Sep-07 16:42 
Questionbasic issue Mode no value Pin
monsieur_jj17-Sep-07 22:13
monsieur_jj17-Sep-07 22:13 
AnswerRe: basic issue Mode no value Pin
Iain Clarke, Warrior Programmer17-Sep-07 22:38
Iain Clarke, Warrior Programmer17-Sep-07 22:38 
QuestionIssue with pointer initialization in a simple thread Pin
__yash__17-Sep-07 21:56
professional__yash__17-Sep-07 21:56 
AnswerRe: Issue with pointer initialization in a simple thread Pin
Cedric Moonen17-Sep-07 22:18
Cedric Moonen17-Sep-07 22:18 
You could pass it as your thread argument. If you look at the documentation of the create thread function that you use, you'll see that it can accept an argument, that will be passed to your thread function through the LPVOID Param.

So, you can simply do that in your thread function:
UINT WorkerThreadForDelay1(LPVOID Param)<br />
{<br />
.<br />
.<br />
CMyView* ptr = (CMyView*)Param;<br />


But be carefull not to use the GUI object directly in your thread.


Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: Issue with pointer initialization in a simple thread Pin
__yash__17-Sep-07 23:09
professional__yash__17-Sep-07 23:09 
AnswerRe: Issue with pointer initialization in a simple thread Pin
Iain Clarke, Warrior Programmer17-Sep-07 22:45
Iain Clarke, Warrior Programmer17-Sep-07 22:45 
GeneralRe: Issue with pointer initialization in a simple thread Pin
__yash__17-Sep-07 23:22
professional__yash__17-Sep-07 23:22 
Question"@err,hr" equivalent in VC 2005 Pin
Mohammed Asif Palimar17-Sep-07 21:45
Mohammed Asif Palimar17-Sep-07 21:45 
AnswerRe: "@err,hr" equivalent in VC 2005 Pin
prasad_som18-Sep-07 2:10
prasad_som18-Sep-07 2:10 
GeneralRe: "@err,hr" equivalent in VC 2005 Pin
Mohammed Asif Palimar20-Sep-07 17:58
Mohammed Asif Palimar20-Sep-07 17:58 
AnswerRe: "@err,hr" equivalent in VC 2005 Pin
prasad_som20-Sep-07 18:09
prasad_som20-Sep-07 18:09 
GeneralRe: "@err,hr" equivalent in VC 2005 Pin
Mohammed Asif Palimar23-Sep-07 18:32
Mohammed Asif Palimar23-Sep-07 18:32 
QuestionHow to retrieve the Child window handle ????? Pin
GauranG Shah17-Sep-07 21:19
GauranG Shah17-Sep-07 21:19 
AnswerRe: How to retrieve the Child window handle ????? Pin
Roger Broomfield17-Sep-07 21:34
Roger Broomfield17-Sep-07 21:34 
GeneralRe: How to retrieve the Child window handle ????? Pin
GauranG Shah17-Sep-07 22:20
GauranG Shah17-Sep-07 22:20 
AnswerRe: How to retrieve the Child window handle ????? Pin
nbugalia17-Sep-07 21:39
nbugalia17-Sep-07 21:39 
GeneralRe: How to retrieve the Child window handle ????? Pin
GauranG Shah17-Sep-07 22:20
GauranG Shah17-Sep-07 22:20 
AnswerRe: How to retrieve the Child window handle ????? Pin
Sreedhar DV17-Sep-07 21:45
Sreedhar DV17-Sep-07 21:45 
Questioninternet help Pin
Karismatic17-Sep-07 19:46
Karismatic17-Sep-07 19:46 
AnswerRe: internet help Pin
Randor 17-Sep-07 20:34
professional Randor 17-Sep-07 20:34 
QuestionIs it possible to get Graphicspath from Region? Pin
Md. Ali Naser Khan17-Sep-07 19:46
Md. Ali Naser Khan17-Sep-07 19:46 

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.