Re: VS2005 doesn't like its own suggestions



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
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >
> >
> >
>
>


.



Relevant Pages

  • Re: printf("%d",*(&ptr2 + 2))
    ... What it prints is purely by chance. ... Did your compiler not produce a warning? ... It expects an int. ...
    (comp.lang.c)
  • psssst - HK Played to 90 mins
    ... certainly created enough chances to force a draw with Godwin Antwi and David ... from a David Mannix searching through ball but Leeds keeper Mark Wilberforce ... A sweet turn gave the 17-year-old a great chance but Wilberforce ...
    (uk.sport.football.clubs.liverpool)
  • Re: PC Stolen
    ... Not a chance. ... Microsoft would get a lot of grief from privacy groups if that were ... Please respond to newsgroup only for everyone's benefit. ... "David Hall" wrote in message ...
    (microsoft.public.windowsxp.security_admin)
  • Re: FYI: Tanzkurs
    ... gleichzeitig auch einen extremen Druck aufbaut. ... aussieht, scheint David doch gar keine Chance zu haben, dort einfach ...
    (de.talk.romance)
  • Re: Top Gun in APA (CPA)?
    ... David "The Hamster" Malone wrote: ... them a chance to win but it keeps your handicap lower. ...
    (rec.sport.billiard)