I am trying to use vector in C++ visual studio.net 2005. I do
#include <vector>, but the compiler does not seem to recognize the
corresponding code, when I define
vector<int> my_vector
Is there anything else I should configure in the project?
thanks
Hi dk60!
> I am trying to use vector in C++ visual studio.net 2005. I do
> #include <vector>, but the compiler does not seem to recognize the
> corresponding code, when I define
> vector<int> my_vector
> Is there anything else I should configure in the project?
STL is normaly inside the namespace "std"... so either declare:
using namespace std;
or write
std::vector<int> m_vector;

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Pixel.to.life - 07 Aug 2007 07:00 GMT
On Aug 6, 10:13 pm, "Jochen Kalmbach [MVP]" <nospam-
Jochen.Kalmb...@holzma.de> wrote:
> Hi dk60!
>
[quoted text clipped - 18 lines]
> My blog about Win32 and .NET
> http://blog.kalmbachnet.de/
This has nothing to do with VS.2005. As Jochen suggests, either
specify the std namespace, or specify explicitly where to look for the
definition of vector.
dk60 - 07 Aug 2007 13:17 GMT
On Aug 7, 7:13 am, "Jochen Kalmbach [MVP]" <nospam-
Jochen.Kalmb...@holzma.de> wrote:
> Hi dk60!
>
[quoted text clipped - 18 lines]
> My blog about Win32 and .NET
> http://blog.kalmbachnet.de/
Thanks! it works
Dan