Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
This program (I used VS2005) produces the two identical files os.txt, fp.txt, both containing the string with the accent.

#include <stdio.h>
#include <fstream>
#include <string>
using namespace std;

int main()
{
  FILE * fp;
  ofstream os;
  fp = fopen("fp.txt", "w");
  os.open("os.txt", ios::out);
  fprintf(fp, "città\n");
  os << "città" << endl;
  fclose(fp);
  os.close();
}


[added]
Fixed the formatting of the code snippet, thanks to Rajesh.
[/added]

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

modified on Monday, October 13, 2008 7:32 AM

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 
AnswerRe: Set Dialog Pin
Hamid_RT13-Oct-08 7:57
Hamid_RT13-Oct-08 7:57 
QuestionModal, Modeless Dialog Box Problem Pin
Dhiraj kumar Saini12-Oct-08 21:55
Dhiraj kumar Saini12-Oct-08 21:55 
AnswerRe: Modal, Modeless Dialog Box Problem Pin
Cedric Moonen12-Oct-08 21:57
Cedric Moonen12-Oct-08 21:57 

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.