My VB6 app can not handle my enums and udts anymore, there are hundreds in my app, causing out of memory erros, that is why I need to use a tlb.
My attempts to create only a tlb without the app that uses it being dependend on the activex-exe or / activex-dll failed.
I need to create a tlb myself.
I tried midl, but it gets stuck at "RECT".
For those who are interested, the successfully compiling and the failing idls are attached. One can see that RECT3 works fine, but RECT does not.
Apart from this problem, I am afraid I will not be able to let VB6 create such a pure tlb.
May I ask if TB can do it, and if yes, can somebody share a sample that contains enums and structs?
Thank you very much!
This idl compiles fine:
This one fails with midl error 2026:Code:// Generated .IDL file (by tws TypeLibMake) // // typelib filename: twsLib6.tlb [ uuid(3F9F252A-FC23-4629-A880-581503938FD1), version(1.03) ] library twsLib6 { [ uuid(777CC57A-8916-455B-A4BD-3947AA221934), version(1.0) ] typedef struct tagRECT3 { long X; long Y; long Width; long Height; } RECT3; };
Code:// Generated .IDL file (by tws TypeLibMake) // // typelib filename: twsLib6.tlb [ uuid(3F9F252A-FC23-4629-A880-581503938FD1), version(1.03) ] library twsLib6 { [ uuid(777CC57A-8916-455B-A4BD-3947AA221934), version(1.0) ] typedef struct tagRECT3 { long X; long Y; long Width; long Height; } RECT3; [ uuid(95116CA9-F776-4FAC-BCAB-36513F0932EC), version(1.0) ] typedef struct tagRECT { long Left; long Top; long Right; long Bottom; } RECT; };




Reply With Quote
