By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,142 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,142 IT Pros & Developers. It's quick & easy.

Methods not visible in COM for a CCW type library

P: n/a
nigel.stephens@parasolit.*co.uk
Nov 24, 10:04 am show options

Newsgroups: microsoft.public.dotnet.framework.interop
From: "nigel.steph...@parasolit.co.uk" <nigel.steph...@parasolit.co.uk>
- Find messages by this author
Date: 24 Nov 2005 02:04:50 -0800
Local: Thurs, Nov 24 2005 10:04 am
Subject: Mehods not showing in COM (CCW) interface of .NET assembly
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Hi,
I have created an assembley in vb.net by adding a class based on the
component tempate to my project. I have a public function called send
that has some parameters and returns a long type.
I have built the project and used regasm.exe to generate a type library

that is a COM Callable Wrapper.
My problem is that my public function is not visible as a method in the

COM interface. I have declared the public function as follows.
Public Function Send(ByVal MsgId As Long) As Long
Is this correct? if so is there anything else I have missed?
Thanks
Nigel

Nov 24 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
When you say "visible" by the meaning of Intellisense pop-up list while
coding, yes, Intellisense will not work with the COM interface of a .NET dll
by default. It is by design. However, there is a way to make it work. See
this link:

http://support.microsoft.com/default...b;en-us;813809
<ni************@parasolit.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
nigel.stephens@parasolit.*co.uk
Nov 24, 10:04 am show options

Newsgroups: microsoft.public.dotnet.framework.interop
From: "nigel.steph...@parasolit.co.uk" <nigel.steph...@parasolit.co.uk>
- Find messages by this author
Date: 24 Nov 2005 02:04:50 -0800
Local: Thurs, Nov 24 2005 10:04 am
Subject: Mehods not showing in COM (CCW) interface of .NET assembly
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Hi,
I have created an assembley in vb.net by adding a class based on the
component tempate to my project. I have a public function called send
that has some parameters and returns a long type.
I have built the project and used regasm.exe to generate a type library

that is a COM Callable Wrapper.
My problem is that my public function is not visible as a method in the

COM interface. I have declared the public function as follows.
Public Function Send(ByVal MsgId As Long) As Long
Is this correct? if so is there anything else I have missed?
Thanks
Nigel
Nov 24 '05 #2

P: n/a
>Public Function Send(ByVal MsgId As Long) As Long


Is this correct? if so is there anything else I have missed?


In addition to what Norman wrote, you should avoid using Long in your
method signature since VB6 doesn't support 64-bit integers.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 24 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.