How to represent a union with structures in it in VB.Net

  • Thread starter Thread starter Vinay Kodam
  • Start date Start date
V

Vinay Kodam

Hi all,

I have a union with two structures in it as shown below. The source code is
written in VC++. I want to represent the same in VB.Net.

union {
struct {
LONG lMinimum;
LONG lMaximum;
};
struct {
DWORD dwMinimum;
DWORD dwMaximum;
};
DWORD dwReserved[6];
}Bounds;

How should i go about it. Can anyone help me.

Regards
Vinay
 
Vinay,

The easiest way seems to be

Structure Bounds
Public minimum As Integer
Public maximum As Integer
Private r0, r1, r2, r3 As Integer
End Structure



Mattias
 
Hi vinary
in vb you have only structure , you can build container structure that
wouldcontain both
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top