Results 1 to 3 of 3

Thread: Union

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    22
    In Visual Basic, Is there a way to implement something like Union in C++ (ie more than one variable sharing the same memory space)

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Unfortunately, VB doesn't support Union.

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I'm not exactly sure what you mean by union as I'm not too hot at C++.

    what you can do is set up a class module with one property and just copy that around with the set command, whatever changes you make to one will be made to all the others, youcan make a new one with the new keyword and the new instance will act independantly of the others.

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