Hello,
What are the C++ equivelents to Variants and Collections ?
Printable View
Hello,
What are the C++ equivelents to Variants and Collections ?
There aren't any, unless you write your own.
However, you can use a variant through COM, but it's nowhere near as easy as VB. Anyway, you should always use proper data types.
Collections - look at the STL linked list classes.
If you are learning C++ then i assume you want to be a proffessional programmer and as such you should avoid variants at all cost. Memory is precious
if u *really* want to do variants, include <ole2.h>
(i think). then you can use variants, but you need to call stuff like VariantInit to even start using them - i'd go look at msdn