Click here to Skip to main content
15,890,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IP Stack Pin
Abhinav S12-Oct-10 5:00
Abhinav S12-Oct-10 5:00 
GeneralRe: IP Stack Pin
bleedingfingers12-Oct-10 5:23
bleedingfingers12-Oct-10 5:23 
QuestionBinary data transfer through serail port Pin
shiv@nand12-Oct-10 0:27
shiv@nand12-Oct-10 0:27 
AnswerRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 0:57
mveCPallini12-Oct-10 0:57 
GeneralRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 1:03
shiv@nand12-Oct-10 1:03 
QuestionRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 1:42
mveCPallini12-Oct-10 1:42 
AnswerRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 1:54
shiv@nand12-Oct-10 1:54 
GeneralRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 2:12
mveCPallini12-Oct-10 2:12 
Well, you don't need to read the file (and write it to the serial port) a character at time (incidentally your loop-exit condition it's wrong, you should use i<nLength).

For sending binary data, you need to fill a SafeArray and pack it into a Variant, see, for instance: "Mscomm and mode binary" at codeguru (using MFC OLE wrapper classes really helps here).
Again, you may also choose to avoid COM and go with Win32's CreateFile, WriteFile, .., see the link Paniello provided.
Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 2:24
shiv@nand12-Oct-10 2:24 
GeneralRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 2:29
mveCPallini12-Oct-10 2:29 
GeneralRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 3:04
shiv@nand12-Oct-10 3:04 
GeneralRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 9:49
mveCPallini12-Oct-10 9:49 
GeneralRe: Binary data transfer through serail port Pin
David Crow12-Oct-10 3:50
David Crow12-Oct-10 3:50 
GeneralRe: Binary data transfer through serail port Pin
Demian Panello12-Oct-10 1:53
Demian Panello12-Oct-10 1:53 
AnswerRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 1:30
sitebuilderLuc Pattyn12-Oct-10 1:30 
GeneralRe: Binary data transfer through serail port Pin
shiv@nand12-Oct-10 1:47
shiv@nand12-Oct-10 1:47 
GeneralRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 2:10
sitebuilderLuc Pattyn12-Oct-10 2:10 
AnswerRe: Binary data transfer through serail port Pin
krish_kumar12-Oct-10 3:02
krish_kumar12-Oct-10 3:02 
AnswerRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 5:17
sitebuilderLuc Pattyn12-Oct-10 5:17 
GeneralRe: Binary data transfer through serail port Pin
Chuck O'Toole12-Oct-10 10:22
Chuck O'Toole12-Oct-10 10:22 
AnswerRe: Binary data transfer through serail port Pin
Luc Pattyn12-Oct-10 10:37
sitebuilderLuc Pattyn12-Oct-10 10:37 
GeneralRe: Binary data transfer through serail port Pin
Chuck O'Toole12-Oct-10 11:05
Chuck O'Toole12-Oct-10 11:05 
QuestionHow to log the start up and shut down time of all the PCs connected in a lan to a file Pin
manoharbalu11-Oct-10 22:19
manoharbalu11-Oct-10 22:19 
AnswerRe: How to log the start up and shut down time of all the PCs connected in a lan to a file Pin
Richard MacCutchan12-Oct-10 2:43
mveRichard MacCutchan12-Oct-10 2:43 
AnswerRe: How to log the start up and shut down time of all the PCs connected in a lan to a file Pin
David Crow12-Oct-10 3:55
David Crow12-Oct-10 3:55 

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.