Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help with Compiling Pin
Monty222-Mar-06 19:23
Monty222-Mar-06 19:23 
GeneralRe: Help with Compiling Pin
roborappa6923-Mar-06 12:51
roborappa6923-Mar-06 12:51 
QuestionCompile error? Pin
Syouki_kou22-Mar-06 16:40
Syouki_kou22-Mar-06 16:40 
AnswerRe: Compile error? Pin
Monty222-Mar-06 19:41
Monty222-Mar-06 19:41 
GeneralRe: Compile error? Pin
Syouki_kou21-Jun-06 16:13
Syouki_kou21-Jun-06 16:13 
QuestionCommand line error D2016 : '/RTC1' and '/clr:initialappdomain' command-line options are incompatible Pin
giftsana22-Mar-06 14:42
giftsana22-Mar-06 14:42 
QuestionConvert a binary file to an ASCII file Pin
NYTSX22-Mar-06 13:23
NYTSX22-Mar-06 13:23 
AnswerRe: Convert a binary file to an ASCII file Pin
kakan22-Mar-06 19:53
professionalkakan22-Mar-06 19:53 
NYTSX wrote:
Since the data is coming over so quickly I store the data to a binary file


First of all: A file is a file. It won't be any faster just because you write *more* data in it as before!

Binary mode vs Text mode is just the way the data gets treated by the runtime.
For a text mode file:
A single '\n' will be written as \r\n in the file.
Upon read, \r\n in the file will be returned as a single '\n'. And the "End of file" character (ctrl-Z, decimal 26, hex 1A) will be treated as end of file.

That handling won't happen in a file opened in binary mode.

I suggest you do like this (assuming you are using the f-functions to handle the file):
For ever buffer of data you receive, save the data exactly as received, buffer for buffer. (Open the file binary mode, use fwrite to write the buffer to the file).
Open/create and close the file just once in your program.

Then use a hex dump program to view the file.
That way, you can see exactly what's going on.

If you want to look at the file as a text file, that will be difficult, since the file contains characters that have no ASCII/ANSI representation. That is all characters with a value below 32 decimal, 20 hex.
Maybe you can find a textviwer/editor who can handle those characters.
GeneralRe: Convert a binary file to an ASCII file Pin
Eytukan22-Mar-06 20:44
Eytukan22-Mar-06 20:44 
GeneralRe: Convert a binary file to an ASCII file Pin
kakan22-Mar-06 20:52
professionalkakan22-Mar-06 20:52 
GeneralRe: Convert a binary file to an ASCII file Pin
NYTSX23-Mar-06 0:49
NYTSX23-Mar-06 0:49 
GeneralRe: Convert a binary file to an ASCII file Pin
kakan23-Mar-06 1:09
professionalkakan23-Mar-06 1:09 
GeneralRe: Convert a binary file to an ASCII file Pin
NYTSX23-Mar-06 1:39
NYTSX23-Mar-06 1:39 
GeneralRe: Convert a binary file to an ASCII file Pin
kakan23-Mar-06 2:04
professionalkakan23-Mar-06 2:04 
GeneralRe: Convert a binary file to an ASCII file Pin
NYTSX23-Mar-06 2:32
NYTSX23-Mar-06 2:32 
Questionmemory usage keeps going up when retrieving webcam image Pin
khrstopher22-Mar-06 13:21
khrstopher22-Mar-06 13:21 
AnswerRe: memory usage keeps going up when retrieving webcam image Pin
MF22-Mar-06 15:48
MF22-Mar-06 15:48 
GeneralRe: memory usage keeps going up when retrieving webcam image Pin
Stephen Hewitt23-Mar-06 12:17
Stephen Hewitt23-Mar-06 12:17 
Questiondataset / datagrid in visual C++ 6 Pin
viperlogic22-Mar-06 12:20
viperlogic22-Mar-06 12:20 
AnswerRe: dataset / datagrid in visual C++ 6 Pin
Christian Graus22-Mar-06 13:45
protectorChristian Graus22-Mar-06 13:45 
AnswerRe: dataset / datagrid in visual C++ 6 Pin
Eytukan22-Mar-06 20:48
Eytukan22-Mar-06 20:48 
JokeRe: dataset / datagrid in visual C++ 6 Pin
toxcct22-Mar-06 21:18
toxcct22-Mar-06 21:18 
AnswerRe: dataset / datagrid in visual C++ 6 Pin
toxcct22-Mar-06 22:52
toxcct22-Mar-06 22:52 
GeneralRe: dataset / datagrid in visual C++ 6 Pin
viperlogic23-Mar-06 0:17
viperlogic23-Mar-06 0:17 
GeneralRe: dataset / datagrid in visual C++ 6 Pin
toxcct23-Mar-06 1:51
toxcct23-Mar-06 1:51 

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.