473,385 Members | 1,615 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,385 software developers and data experts.

newB ?s on Creating libraries in .NET

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
2 1025

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Fenre Stenfex | last post by:
Hi, I'm new to C++. I wanted to learn how to build programs with communication functionality using TCP/IP. Could anyone advise me to some libraries or HowTo guides. I'm using Borland 5.02 ...
5
by: Carl | last post by:
Hi, I am studying C++ right now. I am interested in creating my own mathematical software. Do you have any suggestions on the libraries or std libraries that I can use to creat very simple graphics...
8
by: PHP2 | last post by:
I am pretty new at this so forgive me if this is a stupid question, but is there a simple way to create a window with C++... Maybe a library or something with simple window commands?
5
by: none | last post by:
hi all, (i am running on win 2k pro). i saw a program i like on a website and when i went to download it it was just a load of 'c' code. now, i know very little about 'c' or programming but...
8
by: Aaron | last post by:
I'm coming from C++ programming 5 years ago into VB.NET, so please be patient with me. In C++, I was able to create a "library" of functions and procedures that I would commonly use in various...
8
by: Hari | last post by:
I am very new to programming GUI VB.NET, and I just tried making a simple Form popup with a button that says OK and a label that says "Hello world". I have Visual Studio, but I am not familiar with...
3
by: jeffrey.bigham | last post by:
Hello, I have a relatively simple application that I'm trying to migrate from VS2003 to VS2005. The problem I'm having is that after compiling with VS2005, it won't run on any system that...
0
by: Phani | last post by:
Hi All, I have 3 questions here: 1) Problem creating a SPFolder object: I am trying to create a SPFolder object for a document/picture library using the following code with SOM
2
by: python programming newb | last post by:
Hi all, first post. I'm new to python and tkinter. I'm trying to write a program that opens the root window with a button that then opens a toplevel window that then has it's own widgets. I...
0
by: ddtbhai | last post by:
Hello everyone, As far as i've read about ngen, i've understood that it generates actual machine code for the assembly. In that case, but for the restrictions of the assembly loading process, i...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.