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
From
08/06/1998 16:10:46
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00105882
Message ID:
00106034
Views:
25
>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?.

I recently tried creating a dll that I wanted to pass parameters to in the Init(). It didn't work, so I did something similar to David's suggestion (I even named the method 'Initialize' as well).
Ryan Hirschey
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform