Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWrite to Text file using fprintf Pin
manju 323-Aug-12 1:06
manju 323-Aug-12 1:06 
AnswerRe: Write to Text file using fprintf Pin
Richard MacCutchan23-Aug-12 1:56
mveRichard MacCutchan23-Aug-12 1:56 
GeneralRe: Write to Text file using fprintf Pin
CPallini23-Aug-12 22:55
mveCPallini23-Aug-12 22:55 
GeneralRe: Write to Text file using fprintf Pin
Richard MacCutchan23-Aug-12 23:47
mveRichard MacCutchan23-Aug-12 23:47 
GeneralRe: Write to Text file using fprintf Pin
CPallini25-Aug-12 7:25
mveCPallini25-Aug-12 7:25 
GeneralRe: Write to Text file using fprintf Pin
Richard MacCutchan25-Aug-12 7:29
mveRichard MacCutchan25-Aug-12 7:29 
AnswerRe: Write to Text file using fprintf Pin
pasztorpisti23-Aug-12 1:59
pasztorpisti23-Aug-12 1:59 
AnswerRe: Write to Text file using fprintf Pin
_AnsHUMAN_ 23-Aug-12 2:00
_AnsHUMAN_ 23-Aug-12 2:00 
Are you building your project with "Use Unicode Character Set" or "Use Multi-Byte Character Set" character set. Change it to "Not Set"
Other alternative would be to use string instead of CString.

or like this with the above options set:
FILE *fptr;
	CString Text;
	Text = "asdasdasdasd";
	fptr = _wfopen (_T("D:\\Test.txt"),_T("w+"));
	if(fptr== NULL)
	   exit(1);
	fwprintf(fptr,_T("%s"),Text);	
	fclose(fptr);

You talk about Being HUMAN. I have it in my name
AnsHUMAN

AnswerRe: Write to Text file using fprintf Pin
Richard MacCutchan23-Aug-12 23:46
mveRichard MacCutchan23-Aug-12 23:46 
Question[SOLVED] Missing Include File Pin
Richard Andrew x6422-Aug-12 19:14
professionalRichard Andrew x6422-Aug-12 19:14 
QuestionError conveting VS 2008 project to VS 2010 project Pin
ForNow21-Aug-12 14:49
ForNow21-Aug-12 14:49 
AnswerRe: Error conveting VS 2008 project to VS 2010 project Pin
Richard MacCutchan21-Aug-12 22:36
mveRichard MacCutchan21-Aug-12 22:36 
GeneralRe: Error conveting VS 2008 project to VS 2010 project Pin
ForNow22-Aug-12 2:17
ForNow22-Aug-12 2:17 
GeneralRe: Error conveting VS 2008 project to VS 2010 project Pin
Richard MacCutchan22-Aug-12 2:30
mveRichard MacCutchan22-Aug-12 2:30 
GeneralRe: Error conveting VS 2008 project to VS 2010 project Pin
ForNow22-Aug-12 2:42
ForNow22-Aug-12 2:42 
QuestionWhat happened to the forum? Pin
includeh1021-Aug-12 5:38
includeh1021-Aug-12 5:38 
AnswerRe: What happened to the forum? Pin
Richard Andrew x6421-Aug-12 7:04
professionalRichard Andrew x6421-Aug-12 7:04 
AnswerThen, please, leave my dear. Pin
CPallini21-Aug-12 7:04
mveCPallini21-Aug-12 7:04 
AnswerRe: What happened to the forum? Pin
Richard MacCutchan21-Aug-12 7:16
mveRichard MacCutchan21-Aug-12 7:16 
QuestionNeed help to pan client area of a window using win32 api / mfc Pin
Member 935377620-Aug-12 19:43
Member 935377620-Aug-12 19:43 
AnswerRe: Need help to pan client area of a window using win32 api / mfc Pin
Richard MacCutchan20-Aug-12 21:22
mveRichard MacCutchan20-Aug-12 21:22 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Member 935377620-Aug-12 21:59
Member 935377620-Aug-12 21:59 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Richard MacCutchan20-Aug-12 22:34
mveRichard MacCutchan20-Aug-12 22:34 
GeneralRe: Need help to pan client area of a window using win32 api / mfc Pin
Richard MacCutchan20-Aug-12 22:36
mveRichard MacCutchan20-Aug-12 22:36 
AnswerRe: Need help to pan client area of a window using win32 api / mfc Pin
Sunil P V20-Aug-12 22:38
Sunil P V20-Aug-12 22:38 

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.