Board index » delphi » Incorrect D5 typlib import behavior?
David Stiles
![]() Delphi Developer |
Wed, 20 Feb 2002 03:00:00 GMT
Incorrect D5 typlib import behavior?
I am currently working on a project that creates quite a sophisticated com
model using MSVC++ ATL. The com objects created are standard dual i/f objects and have been working fine for a long time. When we imported the typelib in D4 everything was great, however when we import the same library into D5 some (not all) IDispatch properties have only read methods but no write methods. The C++ IDL file does not have the dispid's specifically defined in it (we Code frag from C++ IDL file [ Generated D5 TLB (IDispatch i/f) IPMLBaseObject = interface(IDispatch) // correct Get/Set functions function Get_GlobalID: Integer; safecall; // read only properties? property GlobalID: Integer read Get_GlobalID; (dispinterface i/f) IPMLBaseObjectDisp = dispinterface Generated D4 TLB // correct Get/Set functions function Get_GlobalID: Integer; safecall; // correct read write props! property GlobalID: Integer read Get_GlobalID write Set_GlobalID; Any suggestion anyone? Paul Smith |