Click here to Skip to main content
15,890,717 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: copy bytes from receive buffer pointer Pin
André Kraak21-Oct-11 13:32
André Kraak21-Oct-11 13:32 
AnswerRe: copy bytes from receive buffer pointer Pin
jkirkerx21-Oct-11 13:36
professionaljkirkerx21-Oct-11 13:36 
AnswerRe: copy bytes from receive buffer pointer Pin
André Kraak21-Oct-11 13:45
André Kraak21-Oct-11 13:45 
AnswerRe: copy bytes from receive buffer pointer Pin
Luc Pattyn21-Oct-11 16:05
sitebuilderLuc Pattyn21-Oct-11 16:05 
QuestionProblem with read in CFile class Pin
antonio34321-Oct-11 6:41
antonio34321-Oct-11 6:41 
AnswerRe: Problem with read in CFile class Pin
Richard MacCutchan21-Oct-11 9:26
mveRichard MacCutchan21-Oct-11 9:26 
GeneralRe: Problem with read in CFile class Pin
David Crow21-Oct-11 10:24
David Crow21-Oct-11 10:24 
GeneralRe: Problem with read in CFile class Pin
antonio34321-Oct-11 22:26
antonio34321-Oct-11 22:26 
I did other example to prove somthing, I did :

CStdioFile f;

		// Se abre el fichero para escritura
	CString path= GetUserHomeDir() + _T("\\temporal.txt");
	f.Open(path, CFile::modeCreate | CFile::modeWrite | CFile::typeText);

	double a=9.8;
	CString b=_T("hello");

	f.WriteString(b);
	f.Write(&a,sizeof(double));

	f.Close();


I see the content from the file, and only wrote hello. This is the content from the file:

hello™™™™™#@
GeneralRe: Problem with read in CFile class Pin
Richard MacCutchan22-Oct-11 0:07
mveRichard MacCutchan22-Oct-11 0:07 
GeneralRe: Problem with read in CFile class Pin
antonio34322-Oct-11 0:33
antonio34322-Oct-11 0:33 
GeneralRe: Problem with read in CFile class Pin
Richard MacCutchan22-Oct-11 0:56
mveRichard MacCutchan22-Oct-11 0:56 
GeneralRe: Problem with read in CFile class Pin
antonio34322-Oct-11 1:09
antonio34322-Oct-11 1:09 
GeneralRe: Problem with read in CFile class Pin
Richard MacCutchan22-Oct-11 1:44
mveRichard MacCutchan22-Oct-11 1:44 
GeneralRe: Problem with read in CFile class Pin
antonio34322-Oct-11 8:21
antonio34322-Oct-11 8:21 
GeneralRe: Problem with read in CFile class Pin
Chuck O'Toole22-Oct-11 9:44
Chuck O'Toole22-Oct-11 9:44 
GeneralRe: Problem with read in CFile class Pin
Richard MacCutchan22-Oct-11 21:33
mveRichard MacCutchan22-Oct-11 21:33 
GeneralRe: Problem with read in CFile class Pin
antonio34323-Oct-11 0:43
antonio34323-Oct-11 0:43 
QuestionMFC dialog + ResizableLib + splitter Pin
Dialecticus21-Oct-11 5:05
Dialecticus21-Oct-11 5:05 
AnswerRe: MFC dialog + ResizableLib + splitter Pin
Richard MacCutchan21-Oct-11 6:26
mveRichard MacCutchan21-Oct-11 6:26 
AnswerRe: MFC dialog + ResizableLib + splitter Pin
TheGreatAndPowerfulOz21-Oct-11 9:17
TheGreatAndPowerfulOz21-Oct-11 9:17 
QuestionProblem with MPR.lib/MFC90.DLL Pin
tasumisra20-Oct-11 17:41
tasumisra20-Oct-11 17:41 
AnswerRe: Problem with MPR.lib/MFC90.DLL Pin
Richard MacCutchan20-Oct-11 21:41
mveRichard MacCutchan20-Oct-11 21:41 
GeneralRe: Problem with MPR.lib/MFC90.DLL Pin
tasumisra20-Oct-11 21:58
tasumisra20-Oct-11 21:58 
GeneralRe: Problem with MPR.lib/MFC90.DLL Pin
Richard MacCutchan20-Oct-11 23:01
mveRichard MacCutchan20-Oct-11 23:01 
GeneralRe: Problem with MPR.lib/MFC90.DLL Pin
tasumisra24-Oct-11 2:03
tasumisra24-Oct-11 2: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.