Click here to Skip to main content
16,012,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ifstream and ofstream issue [modified] Pin
gentleguy20-Jan-08 1:48
gentleguy20-Jan-08 1:48 
QuestionRe: ifstream and ofstream issue Pin
CPallini20-Jan-08 6:14
mveCPallini20-Jan-08 6:14 
GeneralRe: ifstream and ofstream issue Pin
gentleguy20-Jan-08 13:27
gentleguy20-Jan-08 13:27 
GeneralRe: ifstream and ofstream issue Pin
CPallini20-Jan-08 21:30
mveCPallini20-Jan-08 21:30 
GeneralRe: ifstream and ofstream issue Pin
gentleguy21-Jan-08 17:15
gentleguy21-Jan-08 17:15 
GeneralRe: ifstream and ofstream issue Pin
CPallini21-Jan-08 21:58
mveCPallini21-Jan-08 21:58 
GeneralBjarne's comments about exception specification Pin
George_George19-Jan-08 22:57
George_George19-Jan-08 22:57 
Questionwin32 message queue Pin
Hanan88819-Jan-08 22:51
Hanan88819-Jan-08 22:51 
I'm creating a casino slot machine game as a win32 application.

When clicking on an image - I catch such event by locating the mouse position in LBUTTONDOWN message I need to implement following behavior:

1 - I replace the image by another image (a black button image)
2 - from now on, some logic change so that a click on this image cant happen
3 - eventually, after some Sleep() button change back to normal, and can be clicked

my problem is - if you click on the button when it is black, the click happens. that is because an LBUTTONDOWN message created, and it waits in the message queue.

when 'synchronous' logic ends, the image can be clicked, so the message 'from the past' takes action.

two solutions:
1 - clear the message queue - haven't try that.
2 - send my own message at the end of stage 2 of function. that message will trigger stage 3. Any messages caught during stage 1-2 would take action before my custom message and it should act as desired.
BUT unfortunately, it looks like this message get before all the 'messages from the past'.
GeneralRe: win32 message queue Pin
CPallini20-Jan-08 0:40
mveCPallini20-Jan-08 0:40 
GeneralRe: win32 message queue Pin
Hanan88820-Jan-08 0:59
Hanan88820-Jan-08 0:59 
QuestionRe: win32 message queue Pin
CPallini20-Jan-08 1:34
mveCPallini20-Jan-08 1:34 
GeneralRe: win32 message queue Pin
Hanan88820-Jan-08 2:40
Hanan88820-Jan-08 2:40 
QuestionRe: win32 message queue - Shorter question Pin
Hanan88820-Jan-08 0:42
Hanan88820-Jan-08 0:42 
Generalc++ wrapper for java language ! Pin
amitamit19819-Jan-08 20:42
amitamit19819-Jan-08 20:42 
Generalinstalling ".sys" file in windows98 Pin
zon_cpp19-Jan-08 19:57
zon_cpp19-Jan-08 19:57 
GeneralUpload/download file to server Pin
DanYELL19-Jan-08 9:01
DanYELL19-Jan-08 9:01 
GeneralRe: Upload/download file to server Pin
Christian Graus19-Jan-08 9:36
protectorChristian Graus19-Jan-08 9:36 
GeneralRe: Upload/download file to server Pin
DanYELL19-Jan-08 9:53
DanYELL19-Jan-08 9:53 
QuestionNotification on Hibernate? Pin
Dominik Reichl19-Jan-08 8:06
Dominik Reichl19-Jan-08 8:06 
AnswerRe: Notification on Hibernate? Pin
Mark Salsbery19-Jan-08 8:24
Mark Salsbery19-Jan-08 8:24 
GeneralRe: Notification on Hibernate? Pin
Dominik Reichl20-Jan-08 0:25
Dominik Reichl20-Jan-08 0:25 
QuestionHow can capture video from video-capture-card Pin
hanlei000000000919-Jan-08 3:51
hanlei000000000919-Jan-08 3:51 
AnswerRe: How can capture video from video-capture-card Pin
Mark Salsbery19-Jan-08 7:09
Mark Salsbery19-Jan-08 7:09 
GeneralThanks, I choose DirectShow Pin
hanlei000000000919-Jan-08 22:44
hanlei000000000919-Jan-08 22:44 
Generalwhy the code can compile -- about function pointer Pin
George_George19-Jan-08 2:55
George_George19-Jan-08 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.