How to create a DLL ?

T

Teun

Hello,

How can I create a DLL from VB 6.0 or VB.NET, which can be used without
registering with regsvr32.exe (or a setup).

I know it is possible from Delphi or C, but is it also possible with VB?

regards

Teun
 
K

Ken Tucker [MVP]

Hi,

Create a class library project with vb.net.

Ken
---------------------
Hello,

How can I create a DLL from VB 6.0 or VB.NET, which can be used without
registering with regsvr32.exe (or a setup).

I know it is possible from Delphi or C, but is it also possible with VB?

regards

Teun
 
H

Herfried K. Wagner [MVP]

* "Teun said:
How can I create a DLL from VB 6.0 or VB.NET, which can be used without
registering with regsvr32.exe (or a setup).

In VB6 that's not suported.

In VB.NET simply create a class library project. Notice that this will
be a .NET class library.
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?QnJldHQ=?= said:
Is there a disadvantage to using a .NET class library vs. a regular DLL?

This depends on where you want to use this class library. If you want
to use the library in other .NET projects, that's the best solution.
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?QnJldHQ=?= said:
It will be used with ColdFusion on a Windows 2003 server. CF will call the
DLL. No .NET involved. I don't have straight VB. Actually, I'm using
Visual Studio .NET 2005 Express.

I don't know what type of DLL ColdFusion expects. Do you have any
information? ActiveX/COM DLL? A "native" DLL?
 
G

Guest

Herfried K. Wagner said:
I don't know what type of DLL ColdFusion expects. Do you have any
information? ActiveX/COM DLL? A "native" DLL?
All of the DLLs I've called in CF so far have been COM. What do you mean by
"navive"?

Also, the DLL will only be used on the Win2003 server, not distributed. The
server does have the .NET architecture installed.
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?QnJldHQ=?= said:
I don't know what type of DLL ColdFusion expects. Do you have any
information? ActiveX/COM DLL? A "native" DLL?
[...]
All of the DLLs I've called in CF so far have been COM. What do you mean by
"navive"?

Also, the DLL will only be used on the Win2003 server, not distributed. The
server does have the .NET architecture installed.

OK, then I assume that you can write such a DLL using VB.NET.

<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp>
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconCOMInteroperability.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top