Results 1 to 4 of 4

Thread: C++ Troubles

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    Hello,

    What are the C++ equivelents to Variants and Collections ?


  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    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
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    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
    buzzwords are the language of fools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width