Thank you! Its work now.
>>Hi,
>>I use Tobit software api. It have samples on VB.
>>
>>Private Declare Function DVEmlFromMailItem Lib "DvApi32" (ByVal oMailItem As DvApi32.MailItem, ByVal strFileName As String) As Long
>>
>>Declare Integer DVEmlFromMailItem In "DvApi32" Object @, String lcFilename
>>
>>
>>When I call DVEmlFromMailItem(loMailItem,lcTmpFilename) I got error
"Declare Dll call caused an exception">>Code same as VB example in help file, just on foxpro. loMailItem have MailItem type.
>>
>>What might be diffrent between VB and VFP object parameters?
>>
>>Any ideas
>
>Try removing the @ symbol. From the VB code, it's passed by value not reference. I know it sounds weird but that's what the VB code says.