473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Methods not visible in COM for a CCW type library

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
2 3121
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
>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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
1
by: torbs | last post by:
I am trying to use the methods in quicktimes plugin, but IE generetes an error. I have tried to use the "document.all" instead of getElementById but the results remain the same. It won't recognise...
8
by: Michael McDowell | last post by:
I'm confused: "why do we need to assign a method to a delegate then assign the delegate to an event why not just assign the method to the events event handler" and "how does making a...
4
by: Alex Sedow | last post by:
Method invocation will consist of the following steps: 1. Member lookup (14.3) - evaluate method group set (Base.f() and Derived.f()) .Standart say: "The compile-time processing of a method...
3
by: GoodMorningSky | last post by:
I have long term question about object serialization. Object serialization is used in many ways. In .net I heard XML is used for object serialization. I understand how object values are serialized...
1
by: Tomas | last post by:
Is there any sequence diagram on the web that clearly shows in which order all Page methods (load, render and so on) are being called compared to the order the page's contained control methods are...
33
by: Joe Fallon | last post by:
1. I have a Base class that has a certain amount of functionality. 2. Then I have a CodeSmith generated class that inherits from the Base class and adds functionality. 3. Since I want to be able...
1
by: nigel.stephens | last post by:
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> -...
1
by: Janiek Buysrogge | last post by:
Hello, I followed the instructions on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callnetfrcom.asp to call .NET class methods from the ActiveX Test Container...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.