Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Statically linking a project Pin
ravi_iiit3-Jul-04 6:11
ravi_iiit3-Jul-04 6:11 
GeneralIcon problem Pin
gamitech2-Jul-04 9:47
gamitech2-Jul-04 9:47 
GeneralRe: Icon problem Pin
PJ Arends2-Jul-04 17:27
professionalPJ Arends2-Jul-04 17:27 
GeneralRe: Icon problem Pin
gamitech4-Jul-04 6:12
gamitech4-Jul-04 6:12 
GeneralRe: Icon problem Pin
PJ Arends4-Jul-04 10:31
professionalPJ Arends4-Jul-04 10:31 
Generalconverting file to bits Pin
mohamed elemam2-Jul-04 8:21
sussmohamed elemam2-Jul-04 8:21 
GeneralRe: converting file to bits Pin
palbano2-Jul-04 8:41
palbano2-Jul-04 8:41 
GeneralRe: converting file to bits Pin
digwizfox2-Jul-04 11:02
digwizfox2-Jul-04 11:02 
I'm not sure I understand the context of the question either. In a sense, yes a file is a bit stream. It's just data. You don't have to convert a file to a bit stream you simply have to use a tool to get the data out of the file and into a file stream in your program so that you can read the data.

Binary mode; sounds like you might be referring to the CStdioFile which is an MFC class. This class inherits from CFile which is used for binary files. CStdioFile allows you to specify binary or text mode and has some extra functions that make reading lines of text very easy. The MFC documentation is fairly clear on how this works; it's just a matter of reading the class documentation in the MSDN library. Of course, there are the basic C++ file streams that can be used to read files and stream data into your program. These are just STL classes which you can learn about in most basic C++ books.

I guess I don't know if I really answered the original question since it was rather vague. We don't really know what is going to be done with the file so all I can say is that streaming data into the program from a file or vice versa is done with file streams or an MFC framework class such as CFile or CStdioFile. A file is just a stream of bits waiting to be processed. You don't have to convert it to do this; you just do it with an existing programming tool and stream the data into your program.

Best Regards,
Shawn
GeneralRe: converting file to bits Pin
John R. Shaw3-Jul-04 13:53
John R. Shaw3-Jul-04 13:53 
GeneralCreate PDF Pin
doctorpi2-Jul-04 7:46
doctorpi2-Jul-04 7:46 
GeneralRe: Create PDF Pin
Antti Keskinen2-Jul-04 8:38
Antti Keskinen2-Jul-04 8:38 
GeneralRe: Create PDF Pin
doctorpi2-Jul-04 8:41
doctorpi2-Jul-04 8:41 
GeneralRe: Create PDF Pin
Henry miller2-Jul-04 9:40
Henry miller2-Jul-04 9:40 
GeneralGetDocument missunderstood Pin
JabraJabra2-Jul-04 7:16
JabraJabra2-Jul-04 7:16 
GeneralRe: GetDocument missunderstood Pin
Antti Keskinen2-Jul-04 8:25
Antti Keskinen2-Jul-04 8:25 
Generalthanks! Pin
JabraJabra2-Jul-04 8:36
JabraJabra2-Jul-04 8:36 
GeneralAutoFill Pin
Anonymous2-Jul-04 6:19
Anonymous2-Jul-04 6:19 
GeneralRe: AutoFill Pin
palbano2-Jul-04 8:09
palbano2-Jul-04 8:09 
GeneralRe: AutoFill Pin
Anonymous2-Jul-04 8:27
Anonymous2-Jul-04 8:27 
GeneralRe: AutoFill Pin
palbano2-Jul-04 8:45
palbano2-Jul-04 8:45 
QuestionInfinite loop ?? Pin
Spank me!!2-Jul-04 6:08
Spank me!!2-Jul-04 6:08 
AnswerRe: Infinite loop ?? Pin
zarzor2-Jul-04 6:43
zarzor2-Jul-04 6:43 
AnswerRe: Infinite loop ?? Pin
Henry miller2-Jul-04 7:28
Henry miller2-Jul-04 7:28 
AnswerRe: Infinite loop ?? Pin
Tom Wright2-Jul-04 9:09
Tom Wright2-Jul-04 9:09 
AnswerRe: Infinite loop ?? Pin
gamitech2-Jul-04 9:42
gamitech2-Jul-04 9:42 

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.