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. I have a vfp9 dll and
in the init I have a parameter statement but it seems not to take it. Its an
ole public.

Any clues please

Al the apple assassin

An apple a day make steve jobs richer lol




___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000901caa030$b1010970$13031c...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: dll init with parameters

2010-01-28 Thread Allen
Yes a dll will run the init. However it does not see the parameters. Guess
that's a no go but I wondered if the class name need be a particular name of
something, like main. Straws and clutching seem to come to mind
Al

-Original Message-
From: profoxtech-boun...@leafe.com [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.



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/17d8c256fdfc4e15b149e949338e9...@gsl.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


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 pro...@gatwicksoftware.com wrote:

 Hi guys and gals

 Help says you can send parameters to a createobject. I have a vfp9 dll and
 in the init I have a parameter statement but it seems not to take it. Its
 an
 ole public.

 Any clues please

 Al the apple assassin

 An apple a day make steve jobs richer lol



 --- StripMime Report -- processed MIME parts ---
 multipart/alternative
  text/plain (text body -- kept)
  text/html
 ---

[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/3392e7101001280810q2e2d33cfn48af0d00c8a8d...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


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 parameters to the
constructor, which in VFP is the Init method
=

On Thu, Jan 28, 2010 at 6:10 PM, Fred Taylor fbtay...@gmail.com 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


 On Thu, Jan 28, 2010 at 8:34 AM, Allen pro...@gatwicksoftware.com wrote:

 Hi guys and gals

 Help says you can send parameters to a createobject. I have a vfp9 dll and
 in the init I have a parameter statement but it seems not to take it. Its
 an
 ole public.

 Any clues please

 Al the apple assassin

 An apple a day make steve jobs richer lol



 --- StripMime Report -- processed MIME parts ---
 multipart/alternative
  text/plain (text body -- kept)
  text/html
 ---

[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/f0abce311001280818w3bb82ec5l6caa190bba31d...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: dll init with parameters

2010-01-28 Thread Allen
Thanks Fred and Grig for the replies.
Ok sounds like a non starter so I will work it another way
Al

-Original Message-
From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] On
Behalf Of Grigore Dolghin
Sent: 28 January 2010 17:19
To: profoxt...@leafe.com
Subject: Re: 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 is that you can't pass parameters to the
constructor, which in VFP is the Init method
=


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/92e1e13532bf41fb813f0e9481644...@gsl.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


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, Fred!  So glad to see you here again.  Are you doing 
any VFP work anymore?

-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/4b61dd2e.7090...@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


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 your object with parameters and invoke that new method after
  you've created your object.
 
  Fred


 Great tip.  Thanks, Fred!  So glad to see you here again.  Are you doing
 any VFP work anymore?

 Still doing VFP (and FPD) work.  May change soon, started working on
a project in C# to replace several VFP apps.

Fred


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/3392e7101001281102p6e36bc30of075d8ad796ab...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.