I am using Microsoft Visual Studio 6.0 to build a “simple” C++ application.
Basically, in the dialog box, the user should :
·select an item from a list box
·click on a button
·some processing is done by the application
·the dialog is updated and some text should appear in an edit box that forms part of the dialog.
Unfortunately, when I run this nothing happens when the button is clicked. However, if I step through the code in debug it all works.
Interestingly enough, part of the processing that happens after the button is clicked is a WriteFile( ) operation (application is writing to com ports). I have found that if I put in a message box directly after this with just any old debug message in it tha application then runs. Obviously though I don’t want the user to have to “OK” an extra message box just to get the application to work !!
Anyone got any ideas even what sort of problem I am looking at ?????
Basically, in the dialog box, the user should :
·select an item from a list box
·click on a button
·some processing is done by the application
·the dialog is updated and some text should appear in an edit box that forms part of the dialog.
Unfortunately, when I run this nothing happens when the button is clicked. However, if I step through the code in debug it all works.
Interestingly enough, part of the processing that happens after the button is clicked is a WriteFile( ) operation (application is writing to com ports). I have found that if I put in a message box directly after this with just any old debug message in it tha application then runs. Obviously though I don’t want the user to have to “OK” an extra message box just to get the application to work !!
Anyone got any ideas even what sort of problem I am looking at ?????