I'm exporting two UDTs from VC++ to VB6 using an ODL file.
Da problem is that apparently I can't export a struct with members of another exported struct. Here's da code:
Code:
[uuid(1CFE9260-D6FB-11d7-9236-E4FCAE870F25),helpstring("Temp"),lcid(0x0409),version(1.0)]library Temp
{
[helpstring("Typesmodule"),version(1.0),dllname("Temp.dll")]module Typesmodule
{struct point2d{double x,y;};
struct line2d{point2d m1,m2};}
};
I'm getting error MIDL2025 : syntax error : expecting a type specification near "point2d"
Is there something I can do about it?