In Visual Basic, Is there a way to implement something like Union in C++ (ie more than one variable sharing the same memory space)
Printable View
In Visual Basic, Is there a way to implement something like Union in C++ (ie more than one variable sharing the same memory space)
Unfortunately, VB doesn't support Union.
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.