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

newB ?s on Creating libraries in .NET

P: n/a
Is it possible to create a .dll Library in VB .NET? If so, can I do it with
just vbc.exe, or would I need additional software?

Secondly, if I have a compiled file "File1.vb" in a directory, and a file
"File2.vb" in a different directory, is it possible to create an object of
File1 by importing it or something?
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Hari" <ha***********@yahoo.com> wrote in message
news:2K********************@adelphia.com...
Is it possible to create a .dll Library in VB .NET? If so, can I do it
with
just vbc.exe, or would I need additional software?
yes - use the /target:library option.

Secondly, if I have a compiled file "File1.vb" in a directory, and a file
"File2.vb" in a different directory, is it possible to create an object of
File1 by importing it or something?


AFAIK, You cannot do that directly. Either create a module (/target:module)
or a class library and add it as a reference. If its a module, then use
/addmodule option and if its a class library add it along with the other
..NET dlls you are referencing:
/r:System.dll, <your dll>

hope this helps..
Imran.
Nov 21 '05 #2

P: n/a
yes! you edit your visual basic .NET project file (with notepad) and change:

OutputType = "WinExe" to OutputType = "Library"
and StartupObject = ""

good job
Marcello

"Cantelmo Software" del Geom. Marcello Cantelmo
C.F.: CNTMCL68L17E506H - P.IVA: 03733730752
C.C.I.A.A. Lecce n 241514 dal 29/09/2003
* * * * *
Via Verona, 10 - 73100 Lecce (LE) - Italy
Sito Web: www.cantelmosoftware.com (in continuos modernization)
E-Mail: in**@cantelmosoftware.com

last my article on:
http://www.codeproject.com/dotnet/StackCrypt.asp
"Hari" <ha***********@yahoo.com> ha scritto nel messaggio
news:2K********************@adelphia.com...
Is it possible to create a .dll Library in VB .NET? If so, can I do it with just vbc.exe, or would I need additional software?

Secondly, if I have a compiled file "File1.vb" in a directory, and a file
"File2.vb" in a different directory, is it possible to create an object of
File1 by importing it or something?

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.