Click here to Skip to main content
16,005,209 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOCX to DLL Pin
Nilesh Hapse1-May-07 23:19
Nilesh Hapse1-May-07 23:19 
AnswerRe: OCX to DLL Pin
toxcct1-May-07 23:25
toxcct1-May-07 23:25 
GeneralRe: OCX to DLL Pin
Nilesh Hapse1-May-07 23:28
Nilesh Hapse1-May-07 23:28 
GeneralRe: OCX to DLL Pin
toxcct1-May-07 23:30
toxcct1-May-07 23:30 
GeneralRe: OCX to DLL Pin
Nilesh Hapse1-May-07 23:31
Nilesh Hapse1-May-07 23:31 
AnswerRe: OCX to DLL Pin
prasad_som2-May-07 1:28
prasad_som2-May-07 1:28 
GeneralRe: OCX to DLL Pin
Nilesh Hapse2-May-07 21:04
Nilesh Hapse2-May-07 21:04 
QuestionHow to wait for a callback function? Pin
rumburack1-May-07 22:33
rumburack1-May-07 22:33 
Dear all,

I am programming against an API of an application that simulates robot movements.

Whenever I send a command that makes the robot move, the application starts a new thread for that movement and sends a callback when this thread and the accompanying movement have ended. I have no access/handle to that thread, but only the callback. However, the movement only starts, when the function, in which the movement command was issued, returns to the main runloop. So I cannot wait inside the function for the callback to occur, because then the motion would never been started, I cannot wait (or ::Sleep) "outside", because the runloop would get blocked and would also prevent the motion from beeing started.

The reason for waiting is that I have to check feedback from that particular motion (e.g. whether there is a collision), before I can start a new motion.

Is there any way to work around for what seems to me like an unsolvable dilemma?

Thanks a lot for all your comments

AnswerRe: How to wait for a callback function? [modified] Pin
Moak1-May-07 23:43
Moak1-May-07 23:43 
Questiondrawing image histogram and change it by mouse Pin
ndadashi1-May-07 22:33
ndadashi1-May-07 22:33 
Questionhow to initialize const char array? Pin
Joe Smith IX1-May-07 22:21
Joe Smith IX1-May-07 22:21 
AnswerRe: how to initialize const char array? Pin
Christian Graus1-May-07 22:30
protectorChristian Graus1-May-07 22:30 
GeneralRe: how to initialize const char array? Pin
Joe Smith IX1-May-07 22:37
Joe Smith IX1-May-07 22:37 
GeneralRe: how to initialize const char array? Pin
Christian Graus1-May-07 23:21
protectorChristian Graus1-May-07 23:21 
GeneralRe: how to initialize const char array? Pin
Joe Smith IX1-May-07 23:45
Joe Smith IX1-May-07 23:45 
AnswerRe: how to initialize const char array? [modified] Pin
toxcct1-May-07 22:32
toxcct1-May-07 22:32 
GeneralRe: how to initialize const char array? Pin
Joe Smith IX1-May-07 22:49
Joe Smith IX1-May-07 22:49 
GeneralRe: how to initialize const char array? Pin
toxcct1-May-07 22:54
toxcct1-May-07 22:54 
GeneralRe: how to initialize const char array? Pin
Joe Smith IX1-May-07 23:00
Joe Smith IX1-May-07 23:00 
QuestionPls help me Pin
prathuraj1-May-07 21:57
prathuraj1-May-07 21:57 
AnswerRe: Pls help me Pin
jk chan1-May-07 22:10
jk chan1-May-07 22:10 
GeneralRe: Pls help me Pin
prathuraj2-May-07 1:29
prathuraj2-May-07 1:29 
AnswerRe: Pls help me Pin
CPallini1-May-07 22:15
mveCPallini1-May-07 22:15 
QuestionCan anyone help Pin
josip cagalj1-May-07 21:44
josip cagalj1-May-07 21:44 
QuestionRe: Can anyone help Pin
Rajesh R Subramanian1-May-07 21:53
professionalRajesh R Subramanian1-May-07 21:53 

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.