Hello Everyone:
We are having a problem in our IDL file when we inherit a struct from
another struct using COM/C++. We are using UDT (user defined data
type) concept for COM to implement all of our structs in the IDL
file and use inheritance to derive new version of struct from older
struct.
However, it doesn't let us derive from new version of struct from
older struct.
Below is the definition of our structs in the IDL file. In
regular .cpp file for C++ struct inheritance works fine. However, in
the IDL file struct inheritance gives errors. Any suggestions, on how
to fix this problem as soon as possible will be great.
//Below are contents of our .IDL file.
typedef
[
uuid(5B8FB330-FF07-4776-BE21-3505C2208111),
version(1.0),
helpstring("Below is declaration of TempStruct structure")
]
struct TempStruct
{
int val1;
int val2;
};
typedef
[
uuid(C4F4CABE-8DD8-4714-B3F5-CC95533241D6),
version(1.0),
helpstring("Below is declaration of TempStruct2 structure")
]
struct TempStruct2 : TempStruct
{
int tmp;
};
Thanks,
Ashish Misra
Programmer
FAA Contractor