473,480 Members | 3,017 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating COM DLL in VB.Net

I am following the instructions at the link below to create a COM object.
But something is wrong since I cannot register the resulting DLL via
regsvr32 or add a reference to it from VB 6. I receive an error message
that the DLLRegistryServer entry point was not found when using regsvr32,
for example.

To simplify things, my test only had a public function that added two
integers and returned the sum. Creating a Vb.Net dll to do this works
fine. But the COM version does not.

Can someone add to what is at the link to put me on the correct path.

Thanks
http://msdn.microsoft.com/library/de...alBasicNET.asp
Sep 15 '07 #1
3 8417
William,
>But something is wrong since I cannot register the resulting DLL via
regsvr32 or add a reference to it from VB 6.
Regsvr32 is the wrong tool to use. Assemblies are registered with COM
using the Regasm.exe tool (or a setup package). Regasm can also
generate a typelib that you can reference from VB6.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Sep 15 '07 #2
Thanks. I also found that TlbExp.exe will generate the typelib that I can
reference.

"Mattias Sjögren" <ma********************@mvps.orgwrote in message
news:uc**************@TK2MSFTNGP05.phx.gbl...
William,
>>But something is wrong since I cannot register the resulting DLL via
regsvr32 or add a reference to it from VB 6.

Regsvr32 is the wrong tool to use. Assemblies are registered with COM
using the Regasm.exe tool (or a setup package). Regasm can also
generate a typelib that you can reference from VB6.
Mattias

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

Sep 16 '07 #3
Thanks,

Using RegAsm.exe and tlbexp.exe I was able to register the dll and then set
a reference to the tbl file in a VB6 project. And the program used the DLL
successfully.
"Mattias Sjögren" <ma********************@mvps.orgwrote in message
news:uc**************@TK2MSFTNGP05.phx.gbl...
William,
>>But something is wrong since I cannot register the resulting DLL via
regsvr32 or add a reference to it from VB 6.

Regsvr32 is the wrong tool to use. Assemblies are registered with COM
using the Regasm.exe tool (or a setup package). Regasm can also
generate a typelib that you can reference from VB6.
Mattias

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

Sep 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2705
by: rdsteph | last post by:
Python411 is a series of podcasts about Python, aimed at hobbyists and others who are learning Python. Each episode focuses on one aspect of learning Python, or one kind of Python programming, and...
6
6087
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
2
2125
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
15
6715
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
2
3765
by: LIN | last post by:
Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server everytime i posted a article (eg. article12.html )....
2
4546
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
0
2114
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
12
3136
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
15
2786
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
9
2959
by: =?Utf-8?B?YmJn?= | last post by:
Hi all, I read somewhere "using kernel stuff in thread is not good.." if ManualResetEvent object is created in thread but not actually used, will it affect performance? Bob
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.