Board index » delphi » D5: Component wrapper for COM Object doesn't compile in a package
Wendell W. Pinegar
![]() Delphi Developer |
Wed, 30 Oct 2002 03:00:00 GMT
D5: Component wrapper for COM Object doesn't compile in a package
I've designed a Compoent wrapper called TJoystick that is a wrapper for the
DirectX 7.0 VB COM DirectInput objects. The component compiles and works just fine when I simply include it as a part of my project, but when I take the component and add it to a package (so I can then make it available on the component pallet) it always fails to compile and complains with the error: Types of actual and formal var parameters must be identical The line that it fails on is referencing the DeviceStateJoystick function of function GetDeviceStateJoystick(var state: DIJOYSTATE): HResult; When I call the function I pass it a variable that was defined as a DIJOYSTATE = packed record What I don't understand is why my component will compile correctly when Anyone know what could be wrong? Sincerely, Wendell W. Pinegar |