Re: Component help
- From: D.Rowe <DRowe@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Mar 2008 07:40:00 -0700
First of all, after what you said, I switched the parameter types to long and
it worked.
But for you to know, while they were still int when I tried to call it with
VBScript, I used the following.
dim object, res
set object = WScript.CreateObject("Test.TestObkect")
res = object.Add(1, 2)
It kept giving me an error message, something like invalid parameter count.
Eventually I got that line working as
object.Add(1,2,3)
but as you can guess that is pretty useless.
I then checked under the Visual Studio object browser and it had the
prototype for that method as.
Sub Add(a as integer, b as integer, byval res as integer)
So that is when I asked the question here.
"Igor Tandetnik" wrote:
"D.Rowe" <DRowe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:6E0380FC-64E8-4281-BF05-6088DB7977A9@xxxxxxxxxxxxx
Yes, for other languages I mean VB and scripting languages.
The reason I asked this because I tried it like that already and
scripting languages wanted 3 paramaters.
What do you mean, "wanted"? How did you determine that? What have you
tried, and in what way it didn't work?
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
- References:
- Re: Component help
- From: Igor Tandetnik
- Re: Component help
- From: Igor Tandetnik
- Re: Component help
- Prev by Date: Re: Component help
- Next by Date: Re: Automation Server questions
- Previous by thread: Re: Component help
- Index(es):
Relevant Pages
|