>p2smon.dll is the Active Data driver for Crystal, used to pass a populated recordset object to the Crystal Report Engine.
>
>>>I have the following statement in Visual Basic that I would like to convert to Visual Foxpro 6.0:
>>>
>>>Declare Function CreateFieldDefFile Lib "p2smon.dll" (Ador.RecordSet As Object, By Val D:\leo\Temp.TTX as String, By Val bOverWriteExistingFile As Long) as Long
>>>
>>>
>>>Any idea how to write this statement in VFP 6.0?
>>
>>What does this call do?
>>
>>p2smon.dll does not seem to be a Windows DLL.
Doesn't Crystal offer an automation DLL that you can use for this? Something you could CreateObject() instead of DECLARE.
You might want to look at the API dictionary here in the UT for examples of passing the various data types to DLL's. I don't know how you would declare the object variable though.
I was asking about the function to see if there was a way to write it in VFP, but I don't think you want to re-write something like this :)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement