Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTransfer files Pin
vision20047-Sep-03 18:26
vision20047-Sep-03 18:26 
GeneralRe: Transfer files Pin
Alexander M.,8-Sep-03 0:27
Alexander M.,8-Sep-03 0:27 
GeneralVC.net(vc7) and Win98 Help Pin
psksvp7-Sep-03 17:41
psksvp7-Sep-03 17:41 
GeneralRe: VC.net(vc7) and Win98 Help Pin
Alexander M.,8-Sep-03 0:31
Alexander M.,8-Sep-03 0:31 
GeneralRe: VC.net(vc7) and Win98 Help Pin
RChin8-Sep-03 3:15
RChin8-Sep-03 3:15 
Generaldodgy serial communication Pin
godbert7-Sep-03 17:22
godbert7-Sep-03 17:22 
GeneralRe: dodgy serial communication Pin
Fredrik Skog7-Sep-03 20:20
Fredrik Skog7-Sep-03 20:20 
GeneralRe: dodgy serial communication Pin
Ted Ferenc7-Sep-03 21:35
Ted Ferenc7-Sep-03 21:35 
Cable
If hyperteminal works then it should be OK

Data
You are using a sniffer, have you tried using 2 PCs with your prog on #1 and hypertermial on #2? Or use 1 PC with two serial ports?

CreateFile
CreateFile can be used to send serial data, search MSDN for "Configuring a Communications Resource" try this and send a test string to another PC that has hypertermial running, e.g. send "hello world". This should prove out your line settings baud rate, stop bits, parity etc. I assume this is where you problem is.

With serial comms I always found is easiest to buy a comms library, the last one I used was COMM-DRV.

Generally the problems are caused by the cable, handshaking, or not setting the DCB block in SetCommState

A favourite problem is using XON/XOFF protocol and sending XOFF, also some devices/computers will conver a LF to CR/LF unless line characteristics are set to raw mode.

So do a simple test to prove it works sending to hypertermial, that will elinate the receiving prog/device.



It is amazing what you can accomplish if you do not care who gets the credit. - Harry S Truman
GeneralRe: dodgy serial communication Pin
macmac388-Sep-03 1:28
macmac388-Sep-03 1:28 
Questioncan not access the calss view???? Pin
wow99997-Sep-03 16:44
wow99997-Sep-03 16:44 
AnswerRe: can not access the calss view???? Pin
PengFeidu7-Sep-03 20:00
PengFeidu7-Sep-03 20:00 
AnswerRe: can not access the calss view???? Pin
Fredrik Skog7-Sep-03 20:24
Fredrik Skog7-Sep-03 20:24 
AnswerRe: can not access the calss view???? Pin
Hari Krishnan (Noida)7-Sep-03 20:37
Hari Krishnan (Noida)7-Sep-03 20:37 
GeneralHelp! Problem loading BITMAP into the Custom Dialog Pin
colormyiris7-Sep-03 16:21
colormyiris7-Sep-03 16:21 
GeneralWindows memory mapping question Pin
Kuniva7-Sep-03 10:00
Kuniva7-Sep-03 10:00 
GeneralRe: Windows memory mapping question Pin
Dave Bryant7-Sep-03 14:37
Dave Bryant7-Sep-03 14:37 
GeneralRe: Windows memory mapping question Pin
Kuniva7-Sep-03 22:28
Kuniva7-Sep-03 22:28 
Generala perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 8:25
ENewton7-Sep-03 8:25 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Taka Muraoka7-Sep-03 8:54
Taka Muraoka7-Sep-03 8:54 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 9:39
ENewton7-Sep-03 9:39 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Taka Muraoka7-Sep-03 9:41
Taka Muraoka7-Sep-03 9:41 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 10:05
ENewton7-Sep-03 10:05 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Ted Ferenc7-Sep-03 12:26
Ted Ferenc7-Sep-03 12:26 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Gary R. Wheeler7-Sep-03 12:30
Gary R. Wheeler7-Sep-03 12:30 
GeneralConverting a MFC CView app to an ActiveX control Pin
AJ1237-Sep-03 7:29
AJ1237-Sep-03 7:29 

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.