Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Sending parameters to a dll
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
Suivant
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