Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Those *#@!$+ Memory Leaks Pin
jmkhael19-May-05 6:19
jmkhael19-May-05 6:19 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim19-May-05 10:23
sitebuilderUwe Keim19-May-05 10:23 
GeneralRe: Those *#@!$+ Memory Leaks Pin
jmkhael19-May-05 21:53
jmkhael19-May-05 21:53 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim20-May-05 3:28
sitebuilderUwe Keim20-May-05 3:28 
GeneralRe: Those *#@!$+ Memory Leaks Pin
David Crow19-May-05 8:31
David Crow19-May-05 8:31 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim19-May-05 10:22
sitebuilderUwe Keim19-May-05 10:22 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim20-May-05 3:25
sitebuilderUwe Keim20-May-05 3:25 
QuestionVS ANSI C++ implementation error? Pin
Franz Klein19-May-05 5:36
Franz Klein19-May-05 5:36 
I tried the following lines of code on VC++ 2003.NET:

wofstream file;
wstring filename = "whatever.xml"
file.open(filename.c_str(), ios_base::out | ios_base::trunc);

however when compiling I get an error saying that the compiler can't convert from const wchar_t* into const char*. What happened to polymorphism. When I look at the error message I can see that the file variable is correctly a basic_stream using wchar_t but the open function still wants to take a const char*. Isn't this wrong? Is this an incorrect implementation?

Confused | :confused:

I am the handsome one in the crowd.
AnswerRe: VS ANSI C++ implementation error? Pin
David Crow19-May-05 5:49
David Crow19-May-05 5:49 
AnswerRe: VS ANSI C++ implementation error? Pin
PJ Arends19-May-05 7:49
professionalPJ Arends19-May-05 7:49 
Generalsmall pointers problem Pin
Mridang Agarwalla19-May-05 5:16
Mridang Agarwalla19-May-05 5:16 
GeneralRe: small pointers problem Pin
David Crow19-May-05 5:47
David Crow19-May-05 5:47 
GeneralRe: small pointers problem Pin
RChin19-May-05 5:55
RChin19-May-05 5:55 
GeneralRe: small pointers problem Pin
ThatsAlok19-May-05 19:05
ThatsAlok19-May-05 19:05 
GeneralDirectory existance Pin
Imtiaz Murtaza19-May-05 5:13
Imtiaz Murtaza19-May-05 5:13 
GeneralRe: Directory existance Pin
Blake Miller19-May-05 5:16
Blake Miller19-May-05 5:16 
GeneralRe: Directory existance Pin
Ravi Bhavnani19-May-05 5:41
professionalRavi Bhavnani19-May-05 5:41 
GeneralRe: Directory existance Pin
ThatsAlok19-May-05 18:25
ThatsAlok19-May-05 18:25 
GeneralProblem with controlling window media player Pin
JaniceA19-May-05 5:06
JaniceA19-May-05 5:06 
GeneralRun program on startup Pin
Zack Manning19-May-05 4:52
sussZack Manning19-May-05 4:52 
GeneralRe: Run program on startup Pin
Blake Miller19-May-05 5:18
Blake Miller19-May-05 5:18 
GeneralRe: Run program on startup Pin
ddmcr19-May-05 7:11
ddmcr19-May-05 7:11 
GeneralPolyBezier Pin
Anthony988719-May-05 4:37
Anthony988719-May-05 4:37 
GeneralRe: PolyBezier Pin
Joel Holdsworth19-May-05 6:51
Joel Holdsworth19-May-05 6:51 
GeneralHelp needed to fix warning C4251 Pin
Kri519-May-05 3:55
Kri519-May-05 3:55 

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.