Tsahi Muyal
March 29th, 2000, 03:34 AM
Hi All,
I'm developing Client/Server application using vc6 and NT4(SP5).
I created an ATL COM object and the IDL file contain two structs:
typedef struct InnerStruct
{
long lParam1;
long lParam2;
}InnerStruct;
const long MAX_ST_SIZE = 6;
typedef struct OuterStruct
{
long lParam;
//InnerStruct tyInStb; //Remove "//" No bug
InnerStruct tyInSt[MAX_ST_SIZE]; //Bug
}OuterStruct;
The problem is in the client side, When the tlh is created (because of the import) the OuterStruct is declared before the InnerStruct and there is a compile error.
In case the OuterStruct doesn't have an array of structs but just a single struct the tlh compiled successfully.
TIA,
Tsahi Muyal
I'm developing Client/Server application using vc6 and NT4(SP5).
I created an ATL COM object and the IDL file contain two structs:
typedef struct InnerStruct
{
long lParam1;
long lParam2;
}InnerStruct;
const long MAX_ST_SIZE = 6;
typedef struct OuterStruct
{
long lParam;
//InnerStruct tyInStb; //Remove "//" No bug
InnerStruct tyInSt[MAX_ST_SIZE]; //Bug
}OuterStruct;
The problem is in the client side, When the tlh is created (because of the import) the OuterStruct is declared before the InnerStruct and there is a compile error.
In case the OuterStruct doesn't have an array of structs but just a single struct the tlh compiled successfully.
TIA,
Tsahi Muyal