Click here to Skip to main content
16,015,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HOW to save DC of onpaint(); in SDI MFC C++? Pin
humais24-Jun-10 21:49
humais24-Jun-10 21:49 
QuestionInsetObject effect the starting character selection Pin
ForNow23-Jun-10 7:50
ForNow23-Jun-10 7:50 
QuestionDebug with breakpoint works, but debug without breakpoint or release mode fails ? Pin
oppstp23-Jun-10 6:19
oppstp23-Jun-10 6:19 
AnswerRe: Debug with breakpoint works, but debug without breakpoint or release mode fails ? Pin
Code-o-mat23-Jun-10 7:00
Code-o-mat23-Jun-10 7:00 
GeneralRe: Debug with breakpoint works, but debug without breakpoint or release mode fails ? Pin
oppstp23-Jun-10 7:21
oppstp23-Jun-10 7:21 
GeneralRe: Debug with breakpoint works, but debug without breakpoint or release mode fails ? Pin
Code-o-mat23-Jun-10 8:30
Code-o-mat23-Jun-10 8:30 
AnswerRe: Debug with breakpoint works, but debug without breakpoint or release mode fails ? [modified] Pin
Aescleal23-Jun-10 7:30
Aescleal23-Jun-10 7:30 
GeneralRe: Debug with breakpoint works, but debug without breakpoint or release mode fails ? Pin
oppstp23-Jun-10 15:58
oppstp23-Jun-10 15:58 
Thanks for the reply.

The problem which I occurred is about APIFuncB(), not APIFuncA()

Accroding to the document, APIFuncA() returns an int value.
And does't need any waiting mechanism on APIFuncA().

But about APIFuncB(), the document only mentioned two points.
1 : APIFuncB() is asynchronous. When I call APIFuncB(), I must wait for PostThreadMessage of API.
And the message which API sent is SUCCESS_MSG and ERROR_MSG .
When I received the SUCCESS_MSG, I can call the subsequent API functions to do next steps.
2 : The timeout value of APIFuncB() is 1 second, so it suggest the timeout value in my program is 2 seconds.

And the document doesn't describe how to implement the waiting mechanism. I must implement by myself.
That's why I use SetTimer()、WaitPostThreadMessage()、TimerFunc() to implement the waiting mechanism.

Based on my code which posted in this article thread, I think that when I call APIFuncB(),
the created thread is still running, not ended.
Is my thought wrong ?
QuestionRAW Triangle Format: How to parse it properly Pin
ant-damage23-Jun-10 5:37
ant-damage23-Jun-10 5:37 
AnswerRe: RAW Triangle Format: How to parse it properly Pin
El Corazon23-Jun-10 5:44
El Corazon23-Jun-10 5:44 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
ant-damage23-Jun-10 5:55
ant-damage23-Jun-10 5:55 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
El Corazon23-Jun-10 6:03
El Corazon23-Jun-10 6:03 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
ant-damage23-Jun-10 6:05
ant-damage23-Jun-10 6:05 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
El Corazon23-Jun-10 6:45
El Corazon23-Jun-10 6:45 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
ant-damage23-Jun-10 7:01
ant-damage23-Jun-10 7:01 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
El Corazon23-Jun-10 7:03
El Corazon23-Jun-10 7:03 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
ant-damage23-Jun-10 8:08
ant-damage23-Jun-10 8:08 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
ant-damage23-Jun-10 8:16
ant-damage23-Jun-10 8:16 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
El Corazon23-Jun-10 8:21
El Corazon23-Jun-10 8:21 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
ant-damage24-Jun-10 9:41
ant-damage24-Jun-10 9:41 
GeneralRe: RAW Triangle Format: How to parse it properly Pin
El Corazon24-Jun-10 10:03
El Corazon24-Jun-10 10:03 
QuestionRead an executable and write the data to a file. Pin
ALLERSLIT23-Jun-10 5:14
ALLERSLIT23-Jun-10 5:14 
AnswerRe: Read an executable and write the data to a file. Pin
Not Active23-Jun-10 5:26
mentorNot Active23-Jun-10 5:26 
GeneralRe: Read an executable and write the data to a file. Pin
harold aptroot23-Jun-10 5:31
harold aptroot23-Jun-10 5:31 
GeneralRe: Read an executable and write the data to a file. Pin
Not Active23-Jun-10 6:00
mentorNot Active23-Jun-10 6:00 

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.