Click here to Skip to main content
15,894,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Rephrasing the question Pin
orcun colak6-Jan-03 6:52
orcun colak6-Jan-03 6:52 
Generalmy birthday today :) Pin
joshfl6-Jan-03 4:55
joshfl6-Jan-03 4:55 
GeneralRe: my birthday today :) Pin
benjymous6-Jan-03 5:02
benjymous6-Jan-03 5:02 
GeneralNot sure how to do this: Pin
ns6-Jan-03 4:45
ns6-Jan-03 4:45 
GeneralRe: Not sure how to do this: Pin
benjymous6-Jan-03 5:29
benjymous6-Jan-03 5:29 
GeneralRe: Not sure how to do this: Pin
ns6-Jan-03 5:57
ns6-Jan-03 5:57 
GeneralRe: Not sure how to do this: Pin
benjymous6-Jan-03 6:07
benjymous6-Jan-03 6:07 
GeneralRe: Not sure how to do this: Pin
ns6-Jan-03 6:14
ns6-Jan-03 6:14 
Guess my question is this:

If it were text I'd do

buf[0] = 'y';
buf[1] = 'l';

etc etc,

but I want my file to be binary, so how do I write a binary char, and how does my CFile know that I want a binary file not a text file?

The thing looks like:

10 20 30 40 etc when I open it in a binary editor. SO am I suppodsed to do:

buf[0] = '10';
buf[1] = '20'

For sme reaso n I dont think so....

Whats getting me is that you have flags like 'rb' etc in
(!(fpIn = fopen(inputFile,"rb"))



but I want to use MFC


Appreciate your help,
ns
GeneralRe: Not sure how to do this: Pin
jmkhael6-Jan-03 6:54
jmkhael6-Jan-03 6:54 
GeneralRe: Not sure how to do this: Pin
ns6-Jan-03 6:29
ns6-Jan-03 6:29 
GeneralRe: Not sure how to do this: Pin
jmkhael6-Jan-03 6:50
jmkhael6-Jan-03 6:50 
GeneralRe: Not sure how to do this: Pin
User 66586-Jan-03 7:11
User 66586-Jan-03 7:11 
GeneralControls not showing in Spy++ Pin
mynab6-Jan-03 3:53
mynab6-Jan-03 3:53 
GeneralRe: Controls not showing in Spy++ Pin
Joel Lucsy6-Jan-03 14:58
Joel Lucsy6-Jan-03 14:58 
GeneralRe: Controls not showing in Spy++ Pin
mynab6-Jan-03 21:38
mynab6-Jan-03 21:38 
GeneralRe: Controls not showing in Spy++ Pin
mynab6-Jan-03 22:27
mynab6-Jan-03 22:27 
GeneralCFormView and Child Dialogs Pin
Alberto Bar-Noy6-Jan-03 3:52
Alberto Bar-Noy6-Jan-03 3:52 
GeneralRe: CFormView and Child Dialogs Pin
uandrej6-Jan-03 4:02
uandrej6-Jan-03 4:02 
GeneralRe: CFormView and Child Dialogs Pin
Alberto Bar-Noy6-Jan-03 4:13
Alberto Bar-Noy6-Jan-03 4:13 
GeneralRe: CFormView and Child Dialogs Pin
uandrej6-Jan-03 8:42
uandrej6-Jan-03 8:42 
GeneralRe: CFormView and Child Dialogs Pin
Alberto Bar-Noy6-Jan-03 20:53
Alberto Bar-Noy6-Jan-03 20:53 
GeneralCListBox & WM_HSCROLL Pin
uandrej6-Jan-03 3:18
uandrej6-Jan-03 3:18 
GeneralRe: CListBox & WM_HSCROLL Pin
uandrej6-Jan-03 3:49
uandrej6-Jan-03 3:49 
GeneralDirectDraw on WinNT4 Pin
ernst.maurer6-Jan-03 3:01
ernst.maurer6-Jan-03 3:01 
GeneralRe: DirectDraw on WinNT4 Pin
-=jarl=-6-Jan-03 3:45
-=jarl=-6-Jan-03 3:45 

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.