Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IP Stack Pin
bleedingfingers12-Oct-10 3:21
bleedingfingers12-Oct-10 3:21 
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 
here i will give the example what i am doing.

CFile file;
CString str;
unsigned char ch;
if(file.Open("source.bin",CFile::modeRead|CFile::typeBinary))
int nLength = file.GetLength();

for(i=0;i<=nLength;i++) //Transfering file data

{
file.Read(&ch,1);
str.Format ("%c",ch);
m_mscom.SetOutput (COleVariant(str));
}

is it the right way to transfer a binary file ?. i have to transfer a binary file up to 15MB.
GeneralRe: Binary data transfer through serail port Pin
CPallini12-Oct-10 2:12
mveCPallini12-Oct-10 2:12 
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 

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.