Re: VS2005 doesn't like its own suggestions



"David F" <David-White@xxxxxxxxxxxxx> wrote in message
news:uOGi0hNjFHA.2152@xxxxxxxxxxxxxxxxxxxx
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?

Thanks,
David

Probably you have omitted:

#include <string>

Note:

1. Intellisense has its own list of identifiers and so the presence of identifiers in an Intellisense list does not mean you have #included the necessary header.
2. Standard headers sometimes #include other standard headers, so you might get away with not explicitly #including <string> some of the time (similarly with other headers). You should neverthesless explicitly #include it to be sure.


--
John Carson


.



Relevant Pages

  • Re: strtok/strtok_r woes
    ... including standard headers, ... This of course is just plain undefined behavior. ... He is passing the address of a string ...
    (comp.lang.c)
  • Re: Where does std::string defined:
    ... Other standard headers are free to ... include <string>, but there's no guarantee that they will. ... Frank Hickman ...
    (microsoft.public.vc.language)
  • Re: Multiple Legacy Forms
    ... "Jay Freedman" wrote: ... ActiveDocument.Bookmarks.Range.Fields.Result.Text = rslt ... Today I received the Run-Time Error '4609" String too long. ... selections are sentences so I am assuming it's simply too much text. ...
    (microsoft.public.word.docmanagement)
  • Re: Multiple selections in a list box
    ... Sandra Daigle ... > the selections. ... >> To clear the textbox just assign the null value to it: ... will take the selected items from list0 and string them together ...
    (microsoft.public.access.forms)
  • RE: Link data between 2 tables in forms
    ... Private Function BuildWhereCondition(strControl As String) As String ... Dim varItem As Variant ... If you want to go back and add selections from the ... > load the selected contractors into your form. ...
    (microsoft.public.access.forms)

Loading