Click here to Skip to main content
15,915,869 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
Cedric Moonen12-Dec-09 22:18
Cedric Moonen12-Dec-09 22:18 
GeneralRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
sharion13-Dec-09 5:48
sharion13-Dec-09 5:48 
QuestionI can't get MAC by GetAdaptersAddresses [modified] Pin
DavidBrother12-Dec-09 4:57
DavidBrother12-Dec-09 4:57 
AnswerRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 5:27
DavidBrother12-Dec-09 5:27 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
Richard MacCutchan12-Dec-09 6:06
mveRichard MacCutchan12-Dec-09 6:06 
AnswerRe: I can't get MAC by GetAdaptersAddresses Pin
Richard MacCutchan12-Dec-09 6:11
mveRichard MacCutchan12-Dec-09 6:11 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 16:34
DavidBrother12-Dec-09 16:34 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 17:29
DavidBrother12-Dec-09 17:29 
QuestionTAPI send data Pin
cmos12-Dec-09 2:12
cmos12-Dec-09 2:12 
AnswerRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 2:51
mveRichard MacCutchan12-Dec-09 2:51 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 4:11
cmos12-Dec-09 4:11 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 4:25
mveRichard MacCutchan12-Dec-09 4:25 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 4:36
cmos12-Dec-09 4:36 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 4:53
mveRichard MacCutchan12-Dec-09 4:53 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 5:07
cmos12-Dec-09 5:07 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 6:04
mveRichard MacCutchan12-Dec-09 6:04 
GeneralRe: TAPI send data Pin
cmos12-Dec-09 14:19
cmos12-Dec-09 14:19 
GeneralRe: TAPI send data Pin
Richard MacCutchan12-Dec-09 22:52
mveRichard MacCutchan12-Dec-09 22:52 
GeneralRe: TAPI send data Pin
cmos13-Dec-09 1:18
cmos13-Dec-09 1:18 
GeneralRe: TAPI send data Pin
Richard MacCutchan13-Dec-09 1:33
mveRichard MacCutchan13-Dec-09 1:33 
AnswerRe: TAPI send data Pin
armecos22-Feb-10 17:01
armecos22-Feb-10 17:01 
QuestionWriting in a file using CArchive class Pin
Le@rner11-Dec-09 22:47
Le@rner11-Dec-09 22:47 
Hi all,

I am trying to write into file using CArchive class. I have written a simple code just to open a file using and write into it using CArchive class.

CFile file;
CFileException e;
file.Open(L"C:\\file.txt",CFile::modeReadWrite,&e);
CArchive ar (&file, CArchive::store);

char c = 'A';
int i = -400;
float f = 1.25f;
double d = 3.14159265;
ar << c;
ar << i;
ar << f << d;


but when i open the file the content inside it is

Apþÿÿ  ?ñÔÈSû! @

Please anybody can tell me what exactly i am doing wrong

Thanks in advance

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: Writing in a file using CArchive class Pin
Nuri Ismail11-Dec-09 23:51
Nuri Ismail11-Dec-09 23:51 
AnswerRe: Writing in a file using CArchive class Pin
pacotest17-Dec-09 18:42
pacotest17-Dec-09 18:42 
QuestionNamed Mutex not visible from DLL Pin
Bram van Kampen11-Dec-09 15:03
Bram van Kampen11-Dec-09 15:03 

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.