Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: goju
  • Order by date
  1. goju

    how to break out of a FOR loop

    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-...
  2. goju

    edit box: displaying status info

    Hi jfhuang, My program is working fine now. Thank you for your help. goju
  3. goju

    edit box: displaying status info

    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...
  4. goju

    edit box: displaying status info

    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)...
  5. goju

    edit box- line feed / carriage return

    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.
  6. goju

    Cannot read serial data at 19200 baud

    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 {...

Part and Inventory Search

Back
Top