Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending parameters to a dll
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00830944
Message ID:
00831525
Vues:
19
Thanks, that's what we found out. I was hoping I missed something. Is this true of all dll's? Anyway, it sounds strange.
Eylon





>Eylon,
>
>You cannot pass parameters to the Init of a COM object. You can create another method which would accept those parameters.
odata=createobject("classlib.classname")
>odata.Mymethod("param1","param2")
>
>>We are trying to send parameters to a dll written in VFP,
>>i.e. odata=createobject("classlib.classname","param1","param2")
>>
>>in the class definition there is an init function with the relevant parameters:
>>
>>function init (lcDataPath as string,lcactivitydbf as string) as void
>>.
>>.
>>.
>>
>>Endfunc
>>
>>When registering the class as a dll (olepublic) and declaring it the object never reaches the init function, and of course never reads the parameters.
>>
>>When running the class directly through VFP, of course it receives the parameters and works properly.
>>So - what am I missing?
>>Any help would be appreciated.
>>
>>TIA,
>>
>>Eylon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform