Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending parameters to a dll
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00830944
Message ID:
00831525
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform