Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Make Setup file... Pin
SandipG 13-Oct-08 1:27
SandipG 13-Oct-08 1:27 
AnswerRe: Make Setup file... Pin
Hamid_RT13-Oct-08 8:03
Hamid_RT13-Oct-08 8:03 
Questionis there a Template for ISAPI filter creation in vs2005? Pin
Mostafa Siraj12-Oct-08 23:52
Mostafa Siraj12-Oct-08 23:52 
AnswerRe: is there a Template for ISAPI filter creation in vs2005? Pin
led mike13-Oct-08 5:37
led mike13-Oct-08 5:37 
QuestionHow does this driver hold the read data before returning? Pin
kcynic12-Oct-08 23:26
kcynic12-Oct-08 23:26 
AnswerRe: How does this driver hold the read data before returning? Pin
_chew14-Oct-08 3:49
_chew14-Oct-08 3:49 
GeneralRe: How does this driver hold the read data before returning? Pin
kcynic14-Oct-08 4:11
kcynic14-Oct-08 4:11 
QuestionProblem with spanish accents Pin
Member 470854412-Oct-08 23:24
Member 470854412-Oct-08 23:24 
Hi all

First of all, this is my first time writing here, so please sorry if I do something wrong.

I am developing an application which takes a variable std::string and writes it to an std:fstream file. The string is in Spanish so it may have accents. The problem is that when I try to copy the string to the file, it does not copy the spanish accents. Do you have any idea of what I am doing wrong?

Please help me because this is quite urgent. Thanks in advance.

Regards,

Aitor


The code looks like this:

std::string plainText = receiveString() // This method returns a variable string
printf(plainText.c_str) // It prints the string with accents

std:fstream plainFile;
plainFile.open("c:\\test.txt");
plainFile << plainText << std::endl;
plainFile.close(); // The file test.txt does not contain accents

AnswerRe: Problem with spanish accents [modified] Pin
Michael Schubert12-Oct-08 23:28
Michael Schubert12-Oct-08 23:28 
GeneralRe: Problem with spanish accents Pin
Member 470854412-Oct-08 23:51
Member 470854412-Oct-08 23:51 
AnswerRe: Problem with spanish accents [modified] Pin
CPallini13-Oct-08 0:22
mveCPallini13-Oct-08 0:22 
GeneralRe: Problem with spanish accents Pin
Rajesh R Subramanian13-Oct-08 1:01
professionalRajesh R Subramanian13-Oct-08 1:01 
GeneralRe: Problem with spanish accents Pin
CPallini13-Oct-08 1:36
mveCPallini13-Oct-08 1:36 
GeneralRe: Problem with spanish accents Pin
Rajesh R Subramanian13-Oct-08 1:47
professionalRajesh R Subramanian13-Oct-08 1:47 
GeneralRe: Problem with spanish accents Pin
CPallini13-Oct-08 2:16
mveCPallini13-Oct-08 2:16 
AnswerRe: Problem with spanish accents (new point of view) Pin
Member 470854413-Oct-08 1:35
Member 470854413-Oct-08 1:35 
GeneralRe: Problem with spanish accents (new point of view) Pin
Michael Schubert13-Oct-08 1:54
Michael Schubert13-Oct-08 1:54 
GeneralRe: Problem with spanish accents (new point of view) Pin
Member 470854413-Oct-08 5:20
Member 470854413-Oct-08 5:20 
GeneralRe: Problem with spanish accents (new point of view) Pin
Michael Schubert13-Oct-08 6:47
Michael Schubert13-Oct-08 6:47 
QuestionHow to know if a file is opened for writing by another application Pin
hatemtaleb12-Oct-08 23:24
hatemtaleb12-Oct-08 23:24 
AnswerRe: How to know if a file is opened for writing by another application Pin
sashoalm13-Oct-08 2:13
sashoalm13-Oct-08 2:13 
AnswerRe: How to know if a file is opened for writing by another application Pin
Hamid_RT13-Oct-08 7:59
Hamid_RT13-Oct-08 7:59 
AnswerRe: How to know if a file is opened for writing by another application Pin
Iain Clarke, Warrior Programmer13-Oct-08 18:03
Iain Clarke, Warrior Programmer13-Oct-08 18:03 
QuestionSet Dialog Pin
Davitor12-Oct-08 23:18
Davitor12-Oct-08 23:18 
AnswerRe: Set Dialog Pin
David Crow13-Oct-08 3:29
David Crow13-Oct-08 3:29 

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.