473,385 Members | 1,782 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.

Compiling internally instead of as a DLL?

Hi all,

I have added a class library project to my VB solution. All works fine
but when I compile the project, the compiler creates an external DLL
file. What I would rather it do is compile the class library project
into the main VB .exe app that I am compiling. Is this possible? If
so, how?

Thanks

May 5 '06 #1
3 1008
Either add the source (I believe there is also a "add as a link" feature
that allows all projects to refer to the same source file) or you'll likely
have to use the command line compiler that allows to compile source code
into "modules" that you can then combine when building the final exe...

--
Patrice

"Hugh Janus" <my*************@hotmail.com> a écrit dans le message de news:
11**********************@y43g2000cwc.googlegroups. com...
Hi all,

I have added a class library project to my VB solution. All works fine
but when I compile the project, the compiler creates an external DLL
file. What I would rather it do is compile the class library project
into the main VB .exe app that I am compiling. Is this possible? If
so, how?

Thanks

May 5 '06 #2
"Hugh Janus" <my*************@hotmail.com> schrieb:
I have added a class library project to my VB solution. All works fine
but when I compile the project, the compiler creates an external DLL
file. What I would rather it do is compile the class library project
into the main VB .exe app that I am compiling. Is this possible? If
so, how?


I do not see much sense in doing that because typically libraries are
intended to be reusable and replaceable. However, search for ILLink and
ILMerge on the Web...

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

May 5 '06 #3
Hugh Janus wrote:
I have added a class library project to my VB solution. All works fine
but when I compile the project, the compiler creates an external DLL
file. What I would rather it do is compile the class library project
into the main VB .exe app that I am compiling. Is this possible? If
so, how?


If you build a library project, you get a library (Dll) out of it.

Move the class files into the main Executable's Project and it'll all
get built in together.

HTH,
Phill W.
May 5 '06 #4

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

Similar topics

0
by: Johnathan Doe | last post by:
I've been thinking about what the issues would be in compiling Python into native machine code, and since type information is important in Python, it seems possible that Python code can be...
7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
2
by: gurpreet | last post by:
Hi this is gurpreet, I know this is a very simple question but still I want to clear some doubts. What happens when we compile and link a c-program? I hope aquite a lot of responses to my...
12
by: | last post by:
I know how to use a StringBuilder, which supposedly does not create a new copy of it each time you modify it contents by adding or removing text. But, I wonder how does it do that internally ? I...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
3
by: DanB | last post by:
I use VB.NET Std Edition and I am building a web application. I have two problems that may or may not be related. 1) The debugger does not work. 2) If I ignore the debugger, build the...
10
by: Dave Cox | last post by:
of "int" in VB? //b=1.2 b=int(b) //b now equals 1
6
by: Gaijinco | last post by:
I'm having a weird error compiling a multiple file project: I have three files: tortuga.h where I have declared 5 global variables and prototypes for some functions. tortuga.cpp where I...
2
by: mcfly1204 | last post by:
This should be something simple, but if I have a web server that I am hosting a website with with the domain name of www.websitesrfun.com, I cannot access the sites internally using that domain,...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.