Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to create a method returning a string ?

3 views
Skip to first unread message

Francois PIETTE [ICS - MidWare]

unread,
Jul 25, 2008, 3:21:25 PM7/25/08
to
Hello,

I'm adding a COM interface to my application so that is can be driven from
Excel using VBA. Everything is fine untile now. I can add properties and
methods using typelibrary editor and implement them. Perfect.

Now I need to add a method taking a string parameter and returning an string
value.

I cannot figure out how to create that simple function using the typelibrary
editor. I'm sure it is simple but it is not as simple as creating a method
and telling it returns a BSTR...

Any help appreciated.

--
francoi...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

Remy Lebeau (TeamB)

unread,
Jul 25, 2008, 6:38:49 PM7/25/08
to

"Francois PIETTE [ICS - MidWare]" <francoi...@overbyte.be> wrote in
message news:488a280c$1...@newsgroups.borland.com...

> I cannot figure out how to create that simple function using
> the typelibrary editor.

Create a method with two BSTR parameters - the first marked as [in] and the
second marked as [out,retval].


Gsmbit


Francois PIETTE [ICS - MidWare]

unread,
Jul 26, 2008, 1:10:21 AM7/26/08
to
>> I cannot figure out how to create that simple function using
>> the typelibrary editor.

> Create a method with two BSTR parameters - the first marked as
> [in] and the second marked as [out,retval].

I new it was very simple :-)
Thanks, it works.

0 new messages