Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General(Newbie) Help with doc/view Pin
Peter10-Jul-00 12:01
Peter10-Jul-00 12:01 
GeneralRe: (Newbie) Help with doc/view Pin
pba_13-Jul-00 5:47
pba_13-Jul-00 5:47 
QuestionMake copy of DIBSection ? Pin
Christian8-Jul-00 3:23
Christian8-Jul-00 3:23 
GeneralPrinting Dialog Box Pin
etoth17-Jul-00 12:31
etoth17-Jul-00 12:31 
GeneralRe: Printing Dialog Box Pin
Mike Dunn7-Jul-00 17:51
Mike Dunn7-Jul-00 17:51 
GeneralSending the focus back to another window Pin
Mauj7-Jul-00 8:36
Mauj7-Jul-00 8:36 
GeneralRe: Sending the focus back to another window Pin
Yaron8-Jul-00 23:02
Yaron8-Jul-00 23:02 
GeneralRead a single serial byte into COMM-Port Pin
Dieter Wolf7-Jul-00 8:34
sussDieter Wolf7-Jul-00 8:34 
Pleas Help me.
I've already asked the code-gurus, but I've got only very common hints, unnecessary voluminous or so fragmented listing, it didn't help me really. For me as a bloody beginner it is very hard to filter out those parts from the listings, which fits to my following problem:
A self developed external electronic circuit is sending measurement-values (from an external measurement process) as a single serial byte - according to the RS 232 rules - appr. 5 times per millisecond.
I would urgently need a short but complete read-in function for my VC++ program (which is already principally running) to take over the measurements.
My program already performs the opening, initialising and closing of the comm-port properly.
I can set and clear DTR and RTS and so on.
When my external circuit detects the CTS signal - sent from the PC - it starts its transmission of the byte in queue to the comm port. The circuit then repeats this one single serial byte permanently as long as CTS remains HIGH.

BUT I AM NOT ABLE TO READ IN THAT SERIAL BYTE!!

So the function I am so desperately looking for should read in the serial byte which is currently transmitted to the comm port.
In the COMM connector I have shortcut the pins 4 and 6 as well as 7 and 8. So DTR and RTS signals are instantly mirrored back to the PC. Therefore no timeouts or other controls are necessary to perform.
At an average my program is taking access to the COM port every millisecond to read in a new byte. So you see, the function should work a little faster than all the common communication solutions with reading, writing, error-testings time-outs and so on.

If anybody could write me down such a minimized function, it would be great. May be a simple assembler routine would perform the task sufficiently too?
Many thanks in advance an best wishes to you.


GeneralRe: Read a single serial byte into COMM-Port Pin
Mark Jones19-Jul-00 5:05
Mark Jones19-Jul-00 5:05 
GeneralFunction Key usage in Dialog Boxes. Pin
Rick Fishwick7-Jul-00 8:26
sussRick Fishwick7-Jul-00 8:26 
GeneralRe: Function Key usage in Dialog Boxes. Pin
Member 45881447-Jul-00 11:12
Member 45881447-Jul-00 11:12 
GeneralFunction Key usage in Dialog Boxes. Pin
Rick Fishwick7-Jul-00 8:26
sussRick Fishwick7-Jul-00 8:26 
GeneralRe: Function Key usage in Dialog Boxes. Pin
Kurt10-Jul-00 0:00
Kurt10-Jul-00 0:00 
GeneralClass view window for VC++ 6.0 Pin
Kirill Sherman7-Jul-00 7:22
sussKirill Sherman7-Jul-00 7:22 
GeneralRe: Class view window for VC++ 6.0 Pin
Paolo Messina7-Jul-00 8:18
professionalPaolo Messina7-Jul-00 8:18 
GeneralC++ "friend" related Pin
pba_7-Jul-00 7:12
pba_7-Jul-00 7:12 
GeneralRe: C++ Pin
Kirill Sherman7-Jul-00 7:35
sussKirill Sherman7-Jul-00 7:35 
Questionstop MFC re-arranging toolbars when main window re-sized ? Pin
Steve Kearon7-Jul-00 6:12
Steve Kearon7-Jul-00 6:12 
Questionhow i use a wheel message of mouse? Pin
Member 20497-Jul-00 6:03
Member 20497-Jul-00 6:03 
GeneralPassing a CRecordset Pointer to another application through Clipboard Pin
Arvind Wadhawan7-Jul-00 2:55
sussArvind Wadhawan7-Jul-00 2:55 
GeneralRe: Passing a CRecordset Pointer to another application through Clipboard Pin
Pere Mitjavila15-Jul-00 0:07
Pere Mitjavila15-Jul-00 0:07 
GeneralRe: Passing a CRecordset Pointer to another application through Clipboard Pin
Blake Miller15-Jul-00 5:55
Blake Miller15-Jul-00 5:55 
GeneralDevice disabling Pin
cesco7-Jul-00 1:26
cesco7-Jul-00 1:26 
GeneralDoes anyone know how to start with DDK in VC6. Pin
Sajid Siraj6-Jul-00 23:52
Sajid Siraj6-Jul-00 23:52 
QuestionHow can i create an image list independent of the color supported by the system? Pin
Jiju George T6-Jul-00 23:47
Jiju George T6-Jul-00 23:47 

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.