CArray without MFC ?

Can I use the CArray object without creating the project as an MFC project?

I want to use the CArray, but I'm just writing a (relatively) quick and dirty console program to do something for work.

How can I use CArray with a simple non-MFC console app?

I include <afxtempl.h>, but get the error
WINDOWS.H already included. MFC apps must not #include <windows.h>
coming from the afxv_w32.h file.

I've got to be able to do this, right?
[502 byte] By [KingTermite] at [2007-11-17 22:40:09]
# 1 Re: CArray without MFC ?
There is no need to use CArray in a console program.

std::vector is just as powerful, and is standard C++.

see this link (near bottom) :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vcoriStandardTemplateLibrarySamples.asp

Also, a good reference is :

"The C++ Standard C++, A Tutorial and Reference"
by Josuttis
Philip Nicoletti at 2007-11-8 1:11:23 >
# 2 Re: CArray without MFC ?
Thanks...that looks like just what I need. Appreciate it! ;)
KingTermite at 2007-11-8 1:12:26 >