Re: VS2005 doesn't like its own suggestions
- From: "David F" <David-White@xxxxxxxxxxxxx>
- Date: Wed, 20 Jul 2005 07:01:19 -0700
Right on the money.
I swapped the order of these two includes and it worked.
Is this by chance part of MS' holy wars against ISO C++
(in particular and standards in general), trying to push their
proprietary stuff?
This was not a joke - I meant seriously.
After all, are there any non-morbid reasons of having BOOL,
INT which are identical to bool & int? or CString instead
of string?
Let alone coming out with all such stuff as C#, J#, JScript, etc.?
Anyway, thanks a lot,
David
"Simon Watson" <ms dot simonwatson at xoxy dot net> wrote in message
news:eeDlEyQjFHA.2180@xxxxxxxxxxxxxxxxxxxxxxx
> Do you by any chance have something like this?
>
> #include<string>
> ....
> #include "stdafx.h"
>
> Don't know about the VS2005 compiler, but vs6 just silently ignores
> everything above the stdafx include line if you're using precompiled
> headers.
>
> cheers
>
> Simon
>
> "David F" <David-White@xxxxxxxxxxxxx> wrote in message
> news:%23KXPGAPjFHA.2920@xxxxxxxxxxxxxxxxxxxxxxx
> > I have only: #include <string>.
> > But since i also have #include "stdafx.h", which has at least 6 other
> > include files with who knows how many farther nested ones, who knows
> >
> > For Carl:
> >
> > As far as the code goes, it could not be much simpler or innocent:
> > std::string s;
> >
> > and if this line commented out, I get a compilation free of any errors
and
> > warnings.
> >
> >
> > David
> >
> > "Nishant Sivakumar" <nish@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:udhK%23yOjFHA.1480@xxxxxxxxxxxxxxxxxxxxxxx
> > > Are you mixing old and new style headers? If you have <string.h>
instead
> > of
> > > <string> or you have both <string.h> and <string> included, the
compiler
> > > might get confused.
> > >
> > > --
> > > Regards,
> > > Nish [VC++ MVP]
> > > http://www.voidnish.com
> > > http://blog.voidnish.com
> > >
> > >
> > > "David F" <David-White@xxxxxxxxxxxxx> wrote in message
> > > news:%23NJRAdOjFHA.3164@xxxxxxxxxxxxxxxxxxxxxxx
> > > >I do have that include statement
> > > > Sorry, that solution was too easy...
> > > >
> > > > David
> > > >
> > > > "Carl Daniel [VC++ MVP]"
> > <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
> > > > wrote in message news:%23ffzm9NjFHA.2920@xxxxxxxxxxxxxxxxxxxxxxx
> > > >> David F wrote:
> > > >> > I typed std::
> > > >> > A pull down list box poped up with a list of all selections
> available
> > > >> > as expected.
> > > >> > Among them is "string" as expected. I choose "string".
> > > >> > The compiler then complains that "string is not a member of
std"...
> > > >> >
> > > >> > Any idea about such a puzzle?
> > > >>
> > > >> #include <string>
> > > >>
> > > >> -cd
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >
> >
> >
>
>
.
- Follow-Ups:
- Re: VS2005 doesn't like its own suggestions
- From: Arnaud Debaene
- Re: VS2005 doesn't like its own suggestions
- From: Alexander Grigoriev
- Re: VS2005 doesn't like its own suggestions
- From: Carl Daniel [VC++ MVP]
- Re: VS2005 doesn't like its own suggestions
- References:
- VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Carl Daniel [VC++ MVP]
- Re: VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Nishant Sivakumar
- Re: VS2005 doesn't like its own suggestions
- From: David F
- Re: VS2005 doesn't like its own suggestions
- From: Simon Watson
- VS2005 doesn't like its own suggestions
- Prev by Date: Re: Release vs Debug (Memory leak...Object Dump)
- Next by Date: Draw a rect .But the frame change. The rect is disappear. What happen?
- Previous by thread: Re: VS2005 doesn't like its own suggestions
- Next by thread: Re: VS2005 doesn't like its own suggestions
- Index(es):
Relevant Pages
|