Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ActiveX question ! Pin
Chris Losinger13-May-02 10:06
professionalChris Losinger13-May-02 10:06 
GeneralFinding server.. Pin
Rickard Andersson2013-May-02 9:55
Rickard Andersson2013-May-02 9:55 
GeneralRe: Finding server.. Pin
User 665813-May-02 10:56
User 665813-May-02 10:56 
Generalnamespace or name clash errors Pin
JohnnyG13-May-02 9:49
JohnnyG13-May-02 9:49 
GeneralRe: namespace or name clash errors Pin
spoongirl13-May-02 9:45
spoongirl13-May-02 9:45 
GeneralRe: namespace or name clash errors Pin
JohnnyG13-May-02 10:07
JohnnyG13-May-02 10:07 
GeneralRe: namespace or name clash errors Pin
Tim Smith13-May-02 12:10
Tim Smith13-May-02 12:10 
GeneralRe: namespace or name clash errors Pin
Christian Graus13-May-02 13:12
protectorChristian Graus13-May-02 13:12 
JohnnyG wrote:
I believe that I read somewhere that leaving the .h off of the header file for the #include means that you'll use the new C++ runtime library while using the .h means you're using the older version.

That is right - the old one does not use namespaces. If you include both in different parts of a project, and use namespace std in it's entirety, then you'll have that namespace collision because you've loaded the same library twice, once with and once without namespace protection, but then using namespace std; blows it away.

You should NEVER use iostream.h or any other .h header where the name alone ( #include iostream for example ) works. you should only put using statements for what you use, using std::ifstream for example.

JohnnyG wrote:
So, it looks like I need to make this a true Win32 project though I am already using a Win32 console application. Hmmmm.

Bollocks. I use iostream constantly, in Win32, in MFC and in ATL. I think you got the header right somewhere and wrong somewhere else. Make sure you only include the non .h headers, and do it in stdafx.h if possible. Put using statements only for the things you use. Then let me know if you still have the problem.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
GeneralRe: namespace or name clash errors Pin
JohnnyG15-May-02 7:02
JohnnyG15-May-02 7:02 
GeneralRe: namespace or name clash errors Pin
Christian Graus15-May-02 12:51
protectorChristian Graus15-May-02 12:51 
Generalclass view information file Pin
13-May-02 9:36
suss13-May-02 9:36 
GeneralRe: class view information file Pin
lucy13-May-02 9:46
lucy13-May-02 9:46 
GeneralRe: class view information file Pin
13-May-02 9:49
suss13-May-02 9:49 
GeneralRe: class view information file Pin
lucy13-May-02 9:57
lucy13-May-02 9:57 
GeneralRe: class view information file Pin
Chris Losinger13-May-02 10:07
professionalChris Losinger13-May-02 10:07 
GeneralRe: class view information file Pin
Bill Wilson13-May-02 11:23
Bill Wilson13-May-02 11:23 
GeneralRe: class view information file Pin
Michael P Butler13-May-02 22:35
Michael P Butler13-May-02 22:35 
GeneralRegistry error "Invalid handle" Pin
redeemer13-May-02 8:58
redeemer13-May-02 8:58 
GeneralRe: Registry error "Invalid handle" Pin
Carlos Antollini13-May-02 9:13
Carlos Antollini13-May-02 9:13 
GeneralThe RegCreateKeyEx creates or opens a key Pin
redeemer13-May-02 9:25
redeemer13-May-02 9:25 
GeneralRe: The RegCreateKeyEx creates or opens a key Pin
Bill Wilson13-May-02 11:41
Bill Wilson13-May-02 11:41 
GeneralRe: Registry error "Invalid handle" Pin
Jason Henderson13-May-02 17:18
Jason Henderson13-May-02 17:18 
Generalsimple MFC Q- about inheritance Pin
spoongirl13-May-02 8:26
spoongirl13-May-02 8:26 
GeneralRe: simple MFC Q- about inheritance Pin
Bill Wilson13-May-02 10:01
Bill Wilson13-May-02 10:01 
GeneralRe: simple MFC Q- about inheritance Pin
spoongirl14-May-02 5:38
spoongirl14-May-02 5: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.