473,836 Members | 2,187 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
17 19335
gg
OOPS, could not find vbc anywhere!
Of course, there is no class library template in my standard version of
dotnet 2003
Worse, changing output type in the vbproject does not do anything either.

For a while I thought I got an easy solution for the standard edition of dot
2003 with vbc.exe.

Looks like I have to do some digging ( so far no luck with google nor msdn)

Help!

"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 #11
Go to the directory where your source files are. Find a file named with
your source name, but without an extension, it will be labelled a "Visual
Basic .NET Project". Open that file with Notepad. Find the line with
"Output type" in it. Change the text following it to "Library" and and save
it. You are done.

Bobbo
Nov 21 '05 #12
gg
thx, I tried that but I still get exe not dll built
"Robert S. Liles" <rl****@midsout h.rr.com> wrote in message
news:dl******** ********@tornad o.ohiordc.rr.co m...
Go to the directory where your source files are. Find a file named with
your source name, but without an extension, it will be labelled a "Visual
Basic .NET Project". Open that file with Notepad. Find the line with
"Output type" in it. Change the text following it to "Library" and and
save it. You are done.

Bobbo

Nov 21 '05 #13
"gg" <gg@nomail.ni l> schrieb
OOPS, could not find vbc anywhere!
Of course, there is no class library template in my standard
version of dotnet 2003
Worse, changing output type in the vbproject does not do anything
either.

For a while I thought I got an easy solution for the standard
edition of dot 2003 with vbc.exe.

Looks like I have to do some digging ( so far no luck with google
nor msdn)

Help!


vbc.exe is part of the .Net Framework somewhere @
c:\windows\micr osoft.net\frame work....
Armin

Nov 21 '05 #14
Something I think we all forgot to add, in addition to setting "OutputType "
to "Library" instead of "WinExe" or "Exe", set "StartupObj ect" to "". If
you do BOTH of these, it really SHOULD work. It works fine for me. If it
still won't work, email me. I was doing this so often that I wrote a VB
program to do it for me. I can email the program to you as an attachment.
You run the program then pick the solution you want as a DLL. The program
then makes the changes for you.

Bobbo
Nov 21 '05 #15
gg
Great! I found it. I will give that a shot.. thank you

I was looking at the custom install <sdk> directory forgetting the windows
directory!

Btw, is there anything I should watch out for if I want non.net app and
possibly some third part non Microsoft C based app to access the functions
in the dll for my custom functions

for example

mystringclass.v b has

public class mystringclass
......
public function myfcn(byRef strIn as String, byVal istart as Integer,
byVal iend as Integer, ByRef iFoundPos as Integer() ) as string()

End function

....
end class

"Armin Zingler" <az*******@free net.de> wrote in message
news:eV******** ******@TK2MSFTN GP15.phx.gbl...
"gg" <gg@nomail.ni l> schrieb
OOPS, could not find vbc anywhere!
Of course, there is no class library template in my standard
version of dotnet 2003
Worse, changing output type in the vbproject does not do anything
either.

For a while I thought I got an easy solution for the standard
edition of dot 2003 with vbc.exe.

Looks like I have to do some digging ( so far no luck with google
nor msdn)

Help!


vbc.exe is part of the .Net Framework somewhere @
c:\windows\micr osoft.net\frame work....
Armin

Nov 21 '05 #16
"gg" <gg@nomail.ni l> schrieb
Great! I found it. I will give that a shot.. thank you

I was looking at the custom install <sdk> directory forgetting the
windows directory!

Btw, is there anything I should watch out for if I want non.net app
and possibly some third part non Microsoft C based app to access the
functions in the dll for my custom functions

for example

mystringclass.v b has

public class mystringclass
.....
public function myfcn(byRef strIn as String, byVal istart as
Integer, byVal iend as Integer, ByRef iFoundPos as Integer() ) as
string()

End function

....
end class


The language must be based on the .Net Framework. Or wrap the assembly as a
COM component if the other language is able to access COM components.

Armin

Nov 21 '05 #17
gg
thanks you for the tip, NO wonder it did not work. I will look up the com
warp part.
"Armin Zingler" <az*******@free net.de> wrote in message
news:Oe******** ********@TK2MSF TNGP14.phx.gbl. ..
"gg" <gg@nomail.ni l> schrieb
Great! I found it. I will give that a shot.. thank you

I was looking at the custom install <sdk> directory forgetting the
windows directory!

Btw, is there anything I should watch out for if I want non.net app
and possibly some third part non Microsoft C based app to access the
functions in the dll for my custom functions

for example

mystringclass.v b has

public class mystringclass
.....
public function myfcn(byRef strIn as String, byVal istart as
Integer, byVal iend as Integer, ByRef iFoundPos as Integer() ) as
string()

End function

....
end class


The language must be based on the .Net Framework. Or wrap the assembly as
a COM component if the other language is able to access COM components.

Armin

Nov 21 '05 #18

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
3342
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
3825
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
4479
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
19735
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
2124
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
4862
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
6935
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
9811
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
9657
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
10822
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10241
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...
1
7774
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
6975
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5642
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...
2
4003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3103
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.