RE: dll init with parameters

2010-01-28 Thread Tracy Pearson
I don't recall if the a VFP COM object will run the INIT of the object. Make sure it's running by writing a text file out to the drive. Tracy -Original Message- From: Allen Sent: Thursday, January 28, 2010 10:35 AM Hi guys and gals Help says you can send parameters to a createobject.

RE: dll init with parameters

2010-01-28 Thread Allen
[mailto:profoxtech-boun...@leafe.com] On Behalf Of Tracy Pearson Sent: 28 January 2010 16:44 To: profoxt...@leafe.com Subject: RE: dll init with parameters I don't recall if the a VFP COM object will run the INIT of the object. Make sure it's running by writing a text file out to the drive

Re: dll init with parameters

2010-01-28 Thread Fred Taylor
See this link: http://msdn.microsoft.com/en-us/library/ms947579.aspx You can't use the .Init of a COM object and pass parameters. Create a new method on your object with parameters and invoke that new method after you've created your object. Fred On Thu, Jan 28, 2010 at 8:34 AM, Allen

Re: dll init with parameters

2010-01-28 Thread Grigore Dolghin
This comes from a fox chat. Craig Bertson: = [21:43] {CraigBerntson} There are two things to keep in mind: # There is a bug in VFP COM servers. if you have an error in the Init method, the Error method won't fire # One of the rules of COM is that you can't pass

RE: dll init with parameters

2010-01-28 Thread Allen
: dll init with parameters This comes from a fox chat. Craig Bertson: = [21:43] {CraigBerntson} There are two things to keep in mind: # There is a bug in VFP COM servers. if you have an error in the Init method, the Error method won't fire # One of the rules of COM

Re: dll init with parameters

2010-01-28 Thread MB Software Solutions, LLC
Fred Taylor wrote: See this link: http://msdn.microsoft.com/en-us/library/ms947579.aspx You can't use the .Init of a COM object and pass parameters. Create a new method on your object with parameters and invoke that new method after you've created your object. Fred Great tip. Thanks,

Re: dll init with parameters

2010-01-28 Thread Fred Taylor
On Thu, Jan 28, 2010 at 11:53 AM, MB Software Solutions, LLC mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: Fred Taylor wrote: See this link: http://msdn.microsoft.com/en-us/library/ms947579.aspx You can't use the .Init of a COM object and pass parameters. Create a new method on