473,855 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how can one compile vb code into dll?

gg
how can one compile vb code into dll?

The vstdio build project it tends to build exe. When I looked at the build
in help I did not find anything about configuring for DLL. I even try
custom build but did not see anything like dll.

When I looked at the command line tools and sample, I only saw c code not
vb. for dll

the environment I have is
V7.1.3
ms .net frame work 1.1.4322
Installed products: ms vb .net

I would very much appreciate help. even if only a push towards some
documentation will help greatly
Nov 21 '05 #1
17 19343
CT
I'm not sure which edition of VB .NET you have and if your edition allows
you to create class libraries, which will result in a DLL assembly and not
an EXE assembly. When in the IDE, check the properties for your project and
try changing the project type to a Class Library.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, AND MSF
http://www.apress.com/book/bookDisplay.html?bID=105

"gg" <gg@nomail.ni l> wrote in message
news:uU******** ******@TK2MSFTN GP15.phx.gbl...
how can one compile vb code into dll?

The vstdio build project it tends to build exe. When I looked at the
build
in help I did not find anything about configuring for DLL. I even try
custom build but did not see anything like dll.

When I looked at the command line tools and sample, I only saw c code not
vb. for dll

the environment I have is
V7.1.3
ms .net frame work 1.1.4322
Installed products: ms vb .net

I would very much appreciate help. even if only a push towards some
documentation will help greatly

Nov 21 '05 #2


gg wrote:
how can one compile vb code into dll?

The vstdio build project it tends to build exe. When I looked at the build
in help I did not find anything about configuring for DLL. I even try
custom build but did not see anything like dll.

When I looked at the command line tools and sample, I only saw c code not
vb. for dll

the environment I have is
V7.1.3
ms .net frame work 1.1.4322
Installed products: ms vb .net

I would very much appreciate help. even if only a push towards some
documentation will help greatly


In the New Project dialog, choose the 'Class Library' template. This
sets the Output Type, found on the General page of the Project
Properties screen to Class Library, which in turn sets the output file
to be a DLL rather than an EXE.

--
Larry Lard
Replies to group please

Nov 21 '05 #3
"gg" <gg@nomail.ni l> schrieb
how can one compile vb code into dll?

The vstdio build project it tends to build exe. When I looked at
the build in help I did not find anything about configuring for DLL.
I even try custom build but did not see anything like dll.

When I looked at the command line tools and sample, I only saw c
code not vb. for dll

the environment I have is
V7.1.3
ms .net frame work 1.1.4322
Installed products: ms vb .net

I would very much appreciate help. even if only a push towards some
documentation will help greatly

http://msdn.microsoft.com/library/en...ryTemplate.asp
Or, after creation of an Exe project, change the "output type" in the
project properties:
http://msdn.microsoft.com/library/en...ertiespage.asp

Armin

Nov 21 '05 #4


gg wrote:
how can one compile vb code into dll?

The vstdio build project it tends to build exe. When I looked at the build
in help I did not find anything about configuring for DLL. I even try
custom build but did not see anything like dll.

When I looked at the command line tools and sample, I only saw c code not
vb. for dll

the environment I have is
V7.1.3
ms .net frame work 1.1.4322
Installed products: ms vb .net

I would very much appreciate help. even if only a push towards some
documentation will help greatly


In the New Project dialog, choose the 'Class Library' template. This
sets the Output Type, found on the General page of the Project
Properties screen to Class Library, which in turn sets the output file
to be a DLL rather than an EXE.

--
Larry Lard
Replies to group please

Nov 21 '05 #5
"gg" <gg@nomail.ni l> schrieb:
how can one compile vb code into dll?

The vstdio build project it tends to build exe. When I looked at the
build
in help I did not find anything about configuring for DLL. I even try
custom build but did not see anything like dll.

When I looked at the command line tools and sample, I only saw c code not
vb. for dll

the environment I have is
V7.1.3
ms .net frame work 1.1.4322
Installed products: ms vb .net


Creating class libraries with the Standard edition of Visual Basic .NET
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=standardcla sslibraries&lan g=en>

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

Nov 21 '05 #6
Create a ClassLibrary project. That will compile to a .dll. Or from
the command line compiler use the /target:library

Nov 21 '05 #7
"Chris Dunaway" <du******@gmail .com> schrieb:
Create a ClassLibrary project. That will compile to a .dll.


Yeah, but the Standard Edition of VB.NET neither includes this template nor
does it support setting the output type in the project properties to "Class
Library".

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

Nov 21 '05 #8
gg
Thank you. that was very helpful documentation I sorely need.
Thanks for everyone else being so helpful too
"Armin Zingler" <az*******@free net.de> wrote in message
news:eS******** ******@TK2MSFTN GP14.phx.gbl...
"gg" <gg@nomail.ni l> schrieb
how can one compile vb code into dll?

The vstdio build project it tends to build exe. When I looked at
the build in help I did not find anything about configuring for DLL.
I even try custom build but did not see anything like dll.

When I looked at the command line tools and sample, I only saw c
code not vb. for dll

the environment I have is
V7.1.3
ms .net frame work 1.1.4322
Installed products: ms vb .net

I would very much appreciate help. even if only a push towards some
documentation will help greatly

http://msdn.microsoft.com/library/en...ryTemplate.asp
Or, after creation of an Exe project, change the "output type" in the
project properties:
http://msdn.microsoft.com/library/en...ertiespage.asp

Armin

Nov 21 '05 #9
gg
I find the same result.
So I will use the suggestion from Armin: compiler option

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:ei******** *****@TK2MSFTNG P15.phx.gbl...
"Chris Dunaway" <du******@gmail .com> schrieb:
Create a ClassLibrary project. That will compile to a .dll.


Yeah, but the Standard Edition of VB.NET neither includes this template
nor does it support setting the output type in the project properties to
"Class Library".

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

Nov 21 '05 #10

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

Similar topics

4
3267
by: frankg | last post by:
When I compile this file ------------------------------------------------------ #include <stdarg.h> template <class Any> void var_arg_func(int dimension_count, ...) { int dimensions; va_list ap;
5
3344
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new rightType;
5
3828
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace ) Person.xsd includes Common-Naming.xsd ( anonimous schemas ) Common-Naming.xsd includes common.xsd ( both are anonimous schemas ) Compilation of Resident.xsd raise the following exception: "System.Xml.Schema.XmlSchemaException: The attribute 'oid'...
10
4482
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After creating an instance, starting the database, creating a database, and entering the table definitions, all of which seems to work OK, I entered a tiny 8-row table and can do...
10
19738
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I have a struct that contains several different types of data. This struct is used throuout the program. Now, when I compile, I get 6 errors, all of them "Use of possibly unassigned field 'awayTime'" or "Use of possibly unassigned field 'intlTime'"....
6
2864
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked fine while the file was in the project directory. When the obsolete file was removed from the project directory, my application will no longer compile. Can someone please help with this issue? Thank in advance, Tom
5
2125
by: MLH | last post by:
A97 aborts creation of MDE reporting that there's a compile error in one form. Sure enough, if I remove the form from the source database and attempt to compile the MDE, it succeeds. But when I open the source MDB file and the form's class module, click Debug, Compile Loaded Modules - no compile time error is reported. What is the MDE doing to find a compile time error that Debug/Compile Loaded Modules is not? If you've encountered...
15
4872
by: steve yee | last post by:
i want to detect if the compile is 32 bits or 64 bits in the source code itself. so different code are compiled respectively. how to do this?
16
5436
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will first be know at runtime. But is there some strict definitions that defines runtime code and compile time code that can be used in general?
2
6942
by: Andrus | last post by:
I need compile in-memory assembly which references to other in-memory assembly. Compiling second assembly fails with error Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' could not be found Saving assembly to Windows temp directory for referencing only creates huge amout of temporary
0
9903
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9754
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9526
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7927
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5754
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5952
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4168
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3194
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.