newB ?s on Creating libraries in .NET

  • Thread starter Thread starter Hari
  • Start date Start date
H

Hari

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?
 
Hari said:
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.
 
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: (e-mail address removed)

last my article on:
http://www.codeproject.com/dotnet/StackCrypt.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

Similar Threads

How to merge teh lines of two text files? 2
Batch file for file list 2
Treeview 12
Namespace Question 2
using vlookup for multiple files 6
Connecting Files 3
Connect Files 4
Test if "FileCopy" function fails 1

Back
Top