Click to See Complete Forum and Search --> : C++ Troubles
PsyVision
Nov 26th, 2000, 02:45 AM
Hello,
What are the C++ equivelents to Variants and Collections ?
parksie
Nov 26th, 2000, 05:31 AM
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.
Vlatko
Nov 26th, 2000, 05:43 AM
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
KENNNY
Nov 26th, 2000, 06:19 AM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.