Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Generating a short delay (a few ms) Pin
viliam4-Nov-02 0:33
viliam4-Nov-02 0:33 
GeneralRe: Generating a short delay (a few ms) Pin
LittleYellowBird4-Nov-02 2:18
LittleYellowBird4-Nov-02 2:18 
GeneralRe: Generating a short delay (a few ms) Pin
Brigg Thorp4-Nov-02 2:28
Brigg Thorp4-Nov-02 2:28 
GeneralRe: Generating a short delay (a few ms) Pin
LittleYellowBird4-Nov-02 3:02
LittleYellowBird4-Nov-02 3:02 
GeneralRe: Generating a short delay (a few ms) Pin
includeh104-Nov-02 1:10
includeh104-Nov-02 1:10 
GeneralRe: Generating a short delay (a few ms) Pin
LittleYellowBird4-Nov-02 2:10
LittleYellowBird4-Nov-02 2:10 
GeneralRe: Generating a short delay (a few ms) Pin
includeh104-Nov-02 2:25
includeh104-Nov-02 2:25 
GeneralRe: Generating a short delay (a few ms) Pin
LittleYellowBird4-Nov-02 3:09
LittleYellowBird4-Nov-02 3:09 
includeh10 wrote:
do u use a event to check if sending buffer is empty?

Yes, I send a block of data. I can see that the sending buffer is empty. Then I want to leave a gap of 1 or 2 ms to let the receiving device process the data before I send the next block of data.

If I do not leave a gap at all, then the receiving device ignores the first block of data and it is lost.

If I leave a big gap like 70ms to 100ms, I can't send the data quickly enough, because most of the time is used up by the gaps.

I think I may be able to use GetTickCount to create a basic timer, (see above reply). I think I will try that.

Thanks for your help,

Ali
GeneralRe: Generating a short delay (a few ms) Pin
includeh104-Nov-02 4:26
includeh104-Nov-02 4:26 
GeneralRe: Generating a short delay (a few ms) Pin
LittleYellowBird5-Nov-02 3:18
LittleYellowBird5-Nov-02 3:18 
GeneralRe: Generating a short delay (a few ms) Pin
Roger Allen4-Nov-02 7:09
Roger Allen4-Nov-02 7:09 
GeneralRe: Generating a short delay (a few ms) Pin
LittleYellowBird5-Nov-02 3:29
LittleYellowBird5-Nov-02 3:29 
GeneralChange data format from CString to int Pin
ooosawaddee33-Nov-02 23:35
ooosawaddee33-Nov-02 23:35 
GeneralRe: Change data format from CString to int Pin
ian mariano3-Nov-02 23:43
ian mariano3-Nov-02 23:43 
GeneralRe: Change data format from CString to int Pin
RChin3-Nov-02 23:48
RChin3-Nov-02 23:48 
GeneralMSI files problem Pin
Anthony B.3-Nov-02 23:25
Anthony B.3-Nov-02 23:25 
GeneralRe: MSI files problem Pin
ian mariano3-Nov-02 23:33
ian mariano3-Nov-02 23:33 
GeneralRe: MSI files problem Pin
Anonymous6-Nov-02 12:53
Anonymous6-Nov-02 12:53 
GeneralComparing VC++.net standard and VS.net professional Pin
Anonymous3-Nov-02 23:30
Anonymous3-Nov-02 23:30 
General/MD and other c/c++ code generation options Pin
Mondrianx3-Nov-02 23:00
sussMondrianx3-Nov-02 23:00 
GeneralRe: /MD and other c/c++ code generation options Pin
Stephane Rodriguez.5-Nov-02 2:34
Stephane Rodriguez.5-Nov-02 2:34 
GeneralOutlook address Book invoking in VC6 Pin
Sufiyan Sana3-Nov-02 21:57
Sufiyan Sana3-Nov-02 21:57 
GeneralRe: Outlook address Book invoking in VC6 Pin
ian mariano3-Nov-02 23:49
ian mariano3-Nov-02 23:49 
GeneralRe: Outlook address Book invoking in VC6 Pin
Anonymous4-Nov-02 0:02
Anonymous4-Nov-02 0:02 
GeneralRe: Outlook address Book invoking in VC6 Pin
ian mariano4-Nov-02 6:51
ian mariano4-Nov-02 6:51 

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.