Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need your help Pin
Florin Crişan26-Nov-07 5:14
Florin Crişan26-Nov-07 5:14 
QuestionCompile faster Pin
MarcoNedwig25-Nov-07 22:45
MarcoNedwig25-Nov-07 22:45 
GeneralRe: Compile faster Pin
Matthew Faithfull25-Nov-07 23:44
Matthew Faithfull25-Nov-07 23:44 
GeneralRe: Compile faster Pin
MarcoNedwig26-Nov-07 0:10
MarcoNedwig26-Nov-07 0:10 
GeneralRe: Compile faster Pin
jhwurmbach26-Nov-07 1:16
jhwurmbach26-Nov-07 1:16 
AnswerRe: Compile faster Pin
Nelek26-Nov-07 0:38
protectorNelek26-Nov-07 0:38 
AnswerRe: Compile faster Pin
peterchen26-Nov-07 3:30
peterchen26-Nov-07 3:30 
QuestionCString to UTF8 conversion Pin
vytheese25-Nov-07 22:38
professionalvytheese25-Nov-07 22:38 
I am a C# developer, recently I got to do with a VC++ 5.0 project, I stuck up with the following situation,

Saving a string(CString) to file which should be saved as UTF-8 encoded.

<br />
void CPrintMakerDlg::SaveHTML(LPCSTR fileName,CString fileContent)<br />
{<br />
	ofstream iofile;<br />
	try<br />
	{<br />
	LPCSTR str = fileContent.GetBuffer(fileContent.GetLength());<br />
	iofile.open(fileName, ios::in | ios::trunc |ios::binary );<br />
        iofile.write(str,fileContent.GetLength()); <br />
	}<br />
	catch(...)<br />
	{<br />
		AfxMessageBox("The problem is on saving file");<br />
	}<br />
	iofile.close();	<br />
}<br />


I heard the CString will be using internally multi-byte character, So I expecting the file format also should be the UTF8 format but its saving as a ASCII.



Thanks,
Vythees
AnswerRe: CString to UTF8 conversion Pin
bob1697226-Nov-07 2:18
bob1697226-Nov-07 2:18 
GeneralRe: CString to UTF8 conversion Pin
vytheese26-Nov-07 21:52
professionalvytheese26-Nov-07 21:52 
AnswerRe: view resources of the project Pin
Nelek25-Nov-07 22:07
protectorNelek25-Nov-07 22:07 
GeneralRe: view resources of the project Pin
keyto25-Nov-07 22:19
keyto25-Nov-07 22:19 
GeneralRe: view resources of the project Pin
Priya_Sundar25-Nov-07 23:04
Priya_Sundar25-Nov-07 23:04 
GeneralRe: view resources of the project Pin
keyto25-Nov-07 23:23
keyto25-Nov-07 23:23 
GeneralRe: view resources of the project Pin
Priya_Sundar25-Nov-07 23:48
Priya_Sundar25-Nov-07 23:48 
GeneralRe: view resources of the project Pin
keyto26-Nov-07 0:23
keyto26-Nov-07 0:23 
QuestionIE ReBar Window Problem Pin
ayogesh_28@yahoo.co.in25-Nov-07 21:54
ayogesh_28@yahoo.co.in25-Nov-07 21:54 
AnswerRe: IE ReBar Window Problem Pin
Priya_Sundar25-Nov-07 23:56
Priya_Sundar25-Nov-07 23:56 
GeneralRe: IE ReBar Window Problem Pin
ayogesh_28@yahoo.co.in26-Nov-07 1:42
ayogesh_28@yahoo.co.in26-Nov-07 1:42 
QuestionSDI with no doc-view, replace CChildView, there is an error Pin
followait25-Nov-07 21:54
followait25-Nov-07 21:54 
AnswerFound the answer Pin
followait26-Nov-07 1:43
followait26-Nov-07 1:43 
QuestionGetting the raw input data without having a window Pin
Mithilesh Katre25-Nov-07 21:42
Mithilesh Katre25-Nov-07 21:42 
Questionproblem in enumerating the registry values. Pin
yudhisthira25-Nov-07 19:19
yudhisthira25-Nov-07 19:19 
AnswerRe: problem in enumerating the registry values. Pin
Mark Salsbery25-Nov-07 19:31
Mark Salsbery25-Nov-07 19:31 
AnswerRe: problem in enumerating the registry values. Pin
Stephen Hewitt25-Nov-07 19:40
Stephen Hewitt25-Nov-07 19:40 

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.