In my Visual C++ program, I click a button with the
mouse and a routine is executed. There is a FOR loop
in this routine which takes 30 seconds or longer to
complete. I would like to have the ability to exit
from this FOR loop before its normal completion by
hitting a key on the keyboard-...
Brother C,
I tried your version of my program and it works exactly as
mine does. It only displays the last string ("Four")in the edit box. I looked at the edit box properties and tried
numerous combinations, but they all gave me the same result.
This program executes when a pushbutton...
I want to continuously update status information in the edit box. Below is a sample program:
(void)CTestDlg::OnTestButton()
{
int i;
time_t first, second;
m_ReceivedString = "Testing...";
UpdateData(FALSE);
(void)time(&first);
(void)time(&second)...
I can easily display several lines of text using \n in the
message box, but the edit box doesn't seem to recognize
the \n escape sequence. I would like to see a sample
program where several rows of text are displayed in the
edit box using the \n escape sequence.
void SerialCom1::ComRead()
{
int i=0;
int recv;
CString x_Received_String; // Without this line, I cannot
read serial data at 19200 baud
while ( /* allow 5 seconds */)
{
if((ReadFile(m_hCom, &recv, 1, &iBytesRead, NULL)) == 0)
{
return;
}
else
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.