Click here to Skip to main content
15,928,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC++ Pin
Rocky Oswal22-Feb-07 18:56
Rocky Oswal22-Feb-07 18:56 
AnswerRe: VC++ Pin
C Mahesh22-Feb-07 19:03
C Mahesh22-Feb-07 19:03 
QuestionProblem in dialog box scrolling [modified] Pin
C Mahesh22-Feb-07 17:58
C Mahesh22-Feb-07 17:58 
AnswerRe: Problem in dialog box scrolling Pin
MuraliKrishnaP22-Feb-07 20:41
MuraliKrishnaP22-Feb-07 20:41 
QuestionTimer configuration in VC++ Pin
shriram_ch22-Feb-07 16:53
shriram_ch22-Feb-07 16:53 
AnswerRe: Timer configuration in VC++ Pin
ThatsAlok22-Feb-07 17:33
ThatsAlok22-Feb-07 17:33 
GeneralRe: Timer configuration in VC++ Pin
#realJSOP22-Feb-07 23:34
professional#realJSOP22-Feb-07 23:34 
AnswerRe: Timer configuration in VC++ Pin
#realJSOP22-Feb-07 23:44
professional#realJSOP22-Feb-07 23:44 
shriram_ch wrote:
i have to transmit some message at every 1msec, at serial port


I'm almost positive that you can't possibly send discreet messages this fast, especially over a COM port. Your control code will need time to execute, and we're talking at least 3ms just to iterate the loop and send the message.


shriram_ch wrote:
i want to configure system timer for say 1msec exact, how to achive the perfact timing requirement in VC++


Since the Sleep() function doesn't have that kind of granularity (depending on the platform, the best you can get out of it is about 25ms), you're going to need a higher-resolution timer.

There are a couple of articles here on CP that talk about high resolution timers.

http://www.codeproject.com/cpp/precisetimer.asp[^]

http://www.codeproject.com/datetime/perftimer.asp[^]




"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: Timer configuration in VC++ Pin
cmk23-Feb-07 5:47
cmk23-Feb-07 5:47 
QuestionSocket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 8:59
FreeCastle22-Feb-07 8:59 
AnswerRe: Socket question: When does a client connect to a server? Pin
Mark Salsbery22-Feb-07 9:13
Mark Salsbery22-Feb-07 9:13 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 9:57
FreeCastle22-Feb-07 9:57 
GeneralRe: Socket question: When does a client connect to a server? Pin
led mike22-Feb-07 10:02
led mike22-Feb-07 10:02 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 10:07
FreeCastle22-Feb-07 10:07 
GeneralRe: Socket question: When does a client connect to a server? Pin
Mark Salsbery22-Feb-07 10:18
Mark Salsbery22-Feb-07 10:18 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 11:12
FreeCastle22-Feb-07 11:12 
Questionproject on face detection using webcam.. Pin
mannur22-Feb-07 7:59
mannur22-Feb-07 7:59 
AnswerRe: project on face detection using webcam.. Pin
Chris Losinger22-Feb-07 10:31
professionalChris Losinger22-Feb-07 10:31 
QuestionPreventing Escape key from closing dialog window Pin
Neil scsn22-Feb-07 7:51
Neil scsn22-Feb-07 7:51 
AnswerRe: Preventing Escape key from closing dialog window [modified] Pin
Mark Salsbery22-Feb-07 8:35
Mark Salsbery22-Feb-07 8:35 
GeneralRe: Preventing Escape key from closing dialog window Pin
prasad_som22-Feb-07 18:44
prasad_som22-Feb-07 18:44 
GeneralRe: Preventing Escape key from closing dialog window Pin
Mark Salsbery22-Feb-07 20:38
Mark Salsbery22-Feb-07 20:38 
GeneralRe: Preventing Escape key from closing dialog window Pin
prasad_som22-Feb-07 21:34
prasad_som22-Feb-07 21:34 
GeneralRe: Preventing Escape key from closing dialog window Pin
Rajesh R Subramanian22-Feb-07 22:07
professionalRajesh R Subramanian22-Feb-07 22:07 
GeneralRe: Preventing Escape key from closing dialog window Pin
Mark Salsbery23-Feb-07 6:12
Mark Salsbery23-Feb-07 6:12 

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.