473,387 Members | 3,810 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,387 software developers and data experts.

Creating a dll

Hello,
I am new to Visual Studio and VB. Is it possible to create an dll with
Visual Studio using VB .NET that can be consumed in .NET applications
as well VB 6 and VB Script ASP apps?

If so, which project template do I need to start with? I tired using
the class library project, but when I try to register it with regsvr32,
I get a message that it cannot find the entry point in to the dll.
Would one the templates setup the code for this or do I need add some
additional code to dll to get this to work?

Thanks in advance.
Leslie.

Nov 21 '05 #1
5 2158
<le**********@yahoo.com> schrieb:
I am new to Visual Studio and VB. Is it possible to create an dll with
Visual Studio using VB .NET that can be consumed in .NET applications
as well VB 6 and VB Script ASP apps?


..NET Framework Developer's Guide -- Exposing .NET Framework Components to
COM
<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp>

Visual Basic Language Concepts -- COM Interop
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconCOMInteroperability.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Thanks Herfried.

A couple of dumb questions:
- Can I use the ComClass.vb files to start these project? Its seems to
generated the necessary entries for use with COM.
- Do I need to run RegSvr32 on this dll to use it? becuase when I try
it, I still get a message that it cannot find the entry point.

Thanks for your help.

Nov 21 '05 #3
<le**********@yahoo.com> schrieb:
- Can I use the ComClass.vb files to start these project? Its seems to
generated the necessary entries for use with COM.
You can use any class library project to start such a project. However,
don't forget to tick the checkbox "Register for COM interop" in the project
properties.
- Do I need to run RegSvr32 on this dll to use it? becuase when I try
it, I still get a message that it cannot find the entry point.


You'll have to register the assembly using "REGASM.EXE" instead of
"RegSvr32.exe".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Thanks Herfried.

A couple of dumb questions:
- Can I use the ComClass.vb files to start these project? Its seems to
generated the necessary entries for use with COM.
- Do I need to run RegSvr32 on this dll to use it? becuase when I try
it, I still get a message that it cannot find the entry point.

Thanks for your help.

Nov 21 '05 #5
<le**********@yahoo.com> schrieb:
- Can I use the ComClass.vb files to start these project? Its seems to
generated the necessary entries for use with COM.
You can use any class library project to start such a project. However,
don't forget to tick the checkbox "Register for COM interop" in the project
properties.
- Do I need to run RegSvr32 on this dll to use it? becuase when I try
it, I still get a message that it cannot find the entry point.


You'll have to register the assembly using "REGASM.EXE" instead of
"RegSvr32.exe".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

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

Similar topics

2
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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.