Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't seem to instantiate an object in the DLL w/ parame
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00105882
Message ID:
00105895
Views:
28
Stephen,

I don't know if I ever tried to send parms to the Init(). What I've done which was needed in my case was to Add an custom Initialize() method that is specifically called by the C++ client. We use a seperate method so the server can pass back a return value indicating if it had any problems opening the tables.

>This DLL I'm constructing is a bunch of class definitions defined in a single PRG file. To create any of the definitions as objects in some other program I'm using loWhatever = CREATEOBJECT("DLLName.ClassName")
>This works great but I cannot seem to create an object when
>I pass parameters -
>loWhatever = CREATEOBJECT("DLLName.ClassName", "Param1", "Param2"...)
>Passing parameters causes it to blow up. If I change the .Init event of the object I'm trying to create, remove the parameters stuff and just assign the properties after creation, it's fine.
>
>What am I missing here or is it that VFP won't allow parameters to create an object in a DLL?.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform