Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL - EXE
Message
De
16/03/2001 09:18:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00485804
Message ID:
00485855
Vues:
9
>>I have a VFP Dll which is talking to VFP EXE.
>>oVFPExe = CREATEOBJECT('vfpexe.class')
>>oVFPExe.mBegin(ThisIsDll)
>>That line will some process. Inside of it I create an object and call Dll process:
>>*!* MBEGIN
>>LAPARAMETERS toThisIsDll
>>...
>>oParm = NEWOBJECT('parmobj')
>>ThisIsDll.mOpen(oParm)
>>
>>Dll process cannot access any array properties of oParm. Something like this does not work:
>>*!* MOPEN
>>LAPARAMETERS toParrm
>>ALEN(toParrm.arrayproperty)
>>
>>Fills like security problem. Any help, please?
>>
>>Thanks Mark
>
>Mark,
>The problem you're running into is a COM array problem. The properties in question are array properties but they were converted to SAFEARRAYs when they went through the COM barrier.
>
>Check out this message http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~?2,15,461706 and its associated thread for tips on how to navigate your arrays.
>
>HTH.
But I have a problem with ALEN function in DLL COM. It does not like to return a number of elements in the property of a passed object.
Thanks Mark
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform