Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C-Style Exports Pin
Richard Andrew x6424-Nov-13 16:51
professionalRichard Andrew x6424-Nov-13 16:51 
GeneralRe: C-Style Exports Pin
Richard Andrew x6424-Nov-13 16:53
professionalRichard Andrew x6424-Nov-13 16:53 
AnswerRe: C-Style Exports Pin
«_Superman_»24-Nov-13 18:52
professional«_Superman_»24-Nov-13 18:52 
GeneralRe: C-Style Exports Pin
Richard Andrew x6425-Nov-13 6:19
professionalRichard Andrew x6425-Nov-13 6:19 
GeneralRe: C-Style Exports Pin
«_Superman_»25-Nov-13 19:26
professional«_Superman_»25-Nov-13 19:26 
QuestionHow to draw lines in a translucent window Pin
chengmingma22-Nov-13 16:42
chengmingma22-Nov-13 16:42 
AnswerRe: How to draw lines in a translucent window Pin
enhzflep22-Nov-13 18:50
enhzflep22-Nov-13 18:50 
Question[SOLVED] What is the x64 #define? Pin
Richard Andrew x6422-Nov-13 11:34
professionalRichard Andrew x6422-Nov-13 11:34 
SuggestionRe: [SOLVED] What is the x64 #define? Pin
Randor 22-Nov-13 12:51
professional Randor 22-Nov-13 12:51 
GeneralRe: [SOLVED] What is the x64 #define? Pin
Richard Andrew x6422-Nov-13 12:54
professionalRichard Andrew x6422-Nov-13 12:54 
GeneralRe: [SOLVED] What is the x64 #define? Pin
Randor 22-Nov-13 13:13
professional Randor 22-Nov-13 13:13 
QuestionTransparent TreeView Control in MFC CPP Pin
kalyani.homkar20-Nov-13 23:59
kalyani.homkar20-Nov-13 23:59 
AnswerRe: Transparent TreeView Control in MFC CPP Pin
kalyani.homkar21-Nov-13 0:05
kalyani.homkar21-Nov-13 0:05 
QuestionSSL CONNECTION Pin
Member 1041375220-Nov-13 20:44
Member 1041375220-Nov-13 20:44 
QuestionRe: SSL CONNECTION Pin
David Crow22-Nov-13 5:58
David Crow22-Nov-13 5:58 
QuestionCDhtmlDialog : With JavaScript calling C++ Pin
Don Guy20-Nov-13 16:02
Don Guy20-Nov-13 16:02 
QuestionStatic Analysis code reqired for C++ Pin
GauranG Shah20-Nov-13 0:59
GauranG Shah20-Nov-13 0:59 
AnswerRe: Static Analysis code reqired for C++ Pin
Chris Losinger20-Nov-13 1:43
professionalChris Losinger20-Nov-13 1:43 
GeneralRe: Static Analysis code reqired for C++ Pin
GauranG Shah20-Nov-13 4:45
GauranG Shah20-Nov-13 4:45 
AnswerRe: Static Analysis code reqired for C++ Pin
Marco Bertschi20-Nov-13 10:13
protectorMarco Bertschi20-Nov-13 10:13 
AnswerRe: Static Analysis code reqired for C++ Pin
Joe Woodbury22-Nov-13 5:37
professionalJoe Woodbury22-Nov-13 5:37 
GeneralRe: Static Analysis code reqired for C++ Pin
Stefan_Lang26-Nov-13 22:51
Stefan_Lang26-Nov-13 22:51 
GeneralRe: Static Analysis code reqired for C++ Pin
Joe Woodbury27-Nov-13 4:19
professionalJoe Woodbury27-Nov-13 4:19 
QuestionCancelWaitableTimer bug when used with socket? Pin
ehaerim17-Nov-13 15:13
ehaerim17-Nov-13 15:13 
In normal situations, the following code stops timer as expected:

CreateWaitableTimer...
SetWaitabltTimer... // with duration 0 and period USER_TIMER_MINIMUM
CancelWaitableTimer...

Here, I mean 'normal' as 'not using socket calls'.

However, when the two conditions are met, CancelWaitableTimer does not stop timer. I've tried to find out why, in vain. The two conditions are:
- CSocket::Connect or CAsyncSocket::Connect was called
- the last SetWaitableTimer was called with Duration 0 and period USER_TIMER_MINUMUM
Actually USER_TIMER_MINUMUM is only to repeat the issue everytime in 100%.
If period is long enough, this issue happens irregularly.

That is, the following code fails to stop the timer.

CreateWaitableTimer...
SetWaitabltTimer... // with duration 0 and period USER_TIMER_MINIMUM
CSocket::Connect... // use Connect from CSocket or CAsyncSocket
CancelWaitableTimer...

Since it is too hard to post a complete source code here,
I would email the zipped project file if you send me an email to 'ehaerim at gmail dot com'.

thx
HaeRim Lee

modified 17-Nov-13 21:40pm.

AnswerRe: CancelWaitableTimer bug when used with socket? Pin
Orjan Westin19-Nov-13 5:28
professionalOrjan Westin19-Nov-13 5:28 

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.