>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