can we have data types for C structs and union in VB
Hi
I am having this structure in VC, can I have the same data type in VB, and how it will look like
Thanks
struct trevariant_struct {
short NullInd;
Long TreType;
union trevariant_datatype {
long VLong;
double VDouble;
char *VString;
TRE_BLOBVALUE VBlob;
struct trearray_struct {
long Size; /* Size of array */
TRE_VARIANT *Elements; /* Array of elements */
} VArray;
struct trehash_struct { /* All TRE_HASH types */
long Size; /* Number of values in hash */
TRE_HASHVALUE *Elements; /* Array of key value pairs in hash */
} VHash;
} Data;
};
Parallel of C struct?Union in VB
Hi
I am not getting the meaning of replies, I have a dll for which source code is not available to me and it expects a struct as parameter which internally has union inside ( Data structure I have already posted), now is in VB is there any way to create a data structure like this C structure