I believe that VFP 5.0 had a problem passing parameters to com objects. Something about not being able to read the type library sticks in mind. My understanding is that this issue has been fixed in VFP 6.0/SP3.
>Hi everyone !
>
>I'm using VFP 5.0 (we should soon update to 6.0) with Windows 98 SE.
>
>I'm trying to use a COM server which requires me to pass an
>interface as a parameter to a method.
>
>Here is the VFP code :
>
> m.oAcomba = createobject("AcoX0111.AcombaX")
> m.oCharterKey = createobject("AcoX0111.CharterKey")
> m.nError = m.oAcomba.FirstKey(@m.oCharterKey, 1)
>
>When line 3 is executed, VFP crashes with the message 'VFP executed
>an invalid instruction in module OLEAUT32.DLL'
>
>Is VFP suppose to be able to pass an interface as parameter to a
>COM Server method ?
>
>Would upgrading to VFP 6 solve the problem ?
>
>Johnny
Michael P. Antonovich, MCSD
Email: mike@micmin.com
MicMin Associates - Orlando, FL