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

EXE vs DLL Creation

Hello all,

In Clarion for Windows we were able to create many DLL's and a single
execute that would link in the DLL's (LIB's). You could cross DLL->DLL
(imports/exports) and interconnect many procedures/methods. So we could
create a DLL for Persons, one for Businesses, and so on.

What is the recommended way to do this in VB.NET 2005? I would rather not
compile the same Class Library or Module into many EXE's and bloat the
system. Is there anyway to accomplish the same thing or something similar
in VB.NET? I have not seen any project settings to compile anything into
just a DLL.

Any help would be greatly appreciated.

Ben Kim
Emergitech
Feb 7 '06 #1
6 5095
If you create a Class Library project, it will compile into a .dll
which can be used by many .exe's or .dll's. I'm not sure what your
concern is? If the assemblies (.dlls) you create are to be shared by
many different apps, they can be installed in the Global Assembly Cache
(GAC) so that only a single copy of the .dll exists on the system.

Feb 7 '06 #2
Ben,

A very classic way, not the way it is done anymore in Net in my opinion.

(Your method is a classic way of using memory in a single user 640Kb
environment)

However this is my opinion.

Cor
Feb 7 '06 #3
Cor,

Remember I am coming from a Clarion environment which creates 32-bit DLL's
and EXE's. So if that is the classic way, what is the "DOT NET" way?

Ben Kim
Emergitech

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
Ben,

A very classic way, not the way it is done anymore in Net in my opinion.

(Your method is a classic way of using memory in a single user 640Kb
environment)

However this is my opinion.

Cor

Feb 7 '06 #4
Create a project that is a Class Library. That compiles into a DLL.

This is in fact the recommended way. All common functionality goes into a
DLL. Then multiple applications can reference the same DLL and use it,
without having their own copy of the same code.

The Global Assembly Cache (GAC) is also there, so that not only do you only
have 1 copy of the code on your development machine, but now you can have
only 1 copy of the DLL on a deployment machine, but have multiple
applications all use that one copy.

You might want to do some searching of the .net framework documentation and
the web for more details on this.

"Ben Kim" <bk**@NOSPAMemergitech.com> wrote in message
news:OZ**************@TK2MSFTNGP14.phx.gbl...
Hello all,

In Clarion for Windows we were able to create many DLL's and a single
execute that would link in the DLL's (LIB's). You could cross DLL->DLL
(imports/exports) and interconnect many procedures/methods. So we could
create a DLL for Persons, one for Businesses, and so on.

What is the recommended way to do this in VB.NET 2005? I would rather not
compile the same Class Library or Module into many EXE's and bloat the
system. Is there anyway to accomplish the same thing or something similar
in VB.NET? I have not seen any project settings to compile anything into
just a DLL.

Any help would be greatly appreciated.

Ben Kim
Emergitech

Feb 7 '06 #5
Ben,

Remember I am coming from a Clarion environment which creates 32-bit DLL's
and EXE's. So if that is the classic way, what is the "DOT NET" way?

Not to care about it before it is needed and folow the tools in the way as
they make your program.

You can create as much class librarys as you want by the way to make those
librarys reusable.

Cor
Feb 7 '06 #6
Excellent. That is what I needed to know.

Thank you.
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:e%***************@TK2MSFTNGP14.phx.gbl...
Create a project that is a Class Library. That compiles into a DLL.

This is in fact the recommended way. All common functionality goes into a
DLL. Then multiple applications can reference the same DLL and use it,
without having their own copy of the same code.

The Global Assembly Cache (GAC) is also there, so that not only do you
only have 1 copy of the code on your development machine, but now you can
have only 1 copy of the DLL on a deployment machine, but have multiple
applications all use that one copy.

You might want to do some searching of the .net framework documentation
and the web for more details on this.

"Ben Kim" <bk**@NOSPAMemergitech.com> wrote in message
news:OZ**************@TK2MSFTNGP14.phx.gbl...
Hello all,

In Clarion for Windows we were able to create many DLL's and a single
execute that would link in the DLL's (LIB's). You could cross DLL->DLL
(imports/exports) and interconnect many procedures/methods. So we could
create a DLL for Persons, one for Businesses, and so on.

What is the recommended way to do this in VB.NET 2005? I would rather
not compile the same Class Library or Module into many EXE's and bloat
the system. Is there anyway to accomplish the same thing or something
similar in VB.NET? I have not seen any project settings to compile
anything into just a DLL.

Any help would be greatly appreciated.

Ben Kim
Emergitech


Feb 7 '06 #7

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

Similar topics

5
by: [ EuGeNe ] | last post by:
Hi all, I would like to write a script that downloads one file from a ftp server if the file creation date satisfy a condition. I can't figure out how to find from a ftp server what is the...
3
by: SK | last post by:
I have a file. i get the creation time using File.GetCreationTime. then i go and delete that file. and then create it again and print the File.GetCreationTime. It is giving me the old creation...
6
by: | last post by:
I have a class with overloading operator new. (Because, if an identical object exists, return a pointer to existed object instead of a new pointer) It has no sense (it is dangerous) to allocate an...
2
by: David Fickbohm | last post by:
People, I am trying to determine the creation date of files in a folder. I am using the following code to find the folder and confirm that files exist in the folder. If someone could give me an...
5
by: Tompa | last post by:
Hi, I would like to create images on the fly as a response to an http request. I can do this with PIL like this (file create_gif.py): from PIL import Image, ImageDraw print 'Status: 200 OK'...
1
by: chettiar | last post by:
Hi, I am dropping an index and recreating it to lower the high water mark. The index creation is taking a lot of time. I am stuck as to why it does so. Is there any way that I can find out why...
0
by: Pluton | last post by:
Hello, I would like to know if you are informed of one (or several!) good book, document (memory, tutorial, etc...) or site concerning the creation of controls? I am rather interested in...
3
by: Steven Blair | last post by:
Hi, I have a trace log file for a system I am writing. If the creation date is older than 14 days, I have to rename that file (File.Move). The next time a trace message is required a new file is...
8
by: Anthony Munter | last post by:
I have a web application with impersonate=”true” in Web.config and on my own logon page I allow the user to either - specify a userid/password for the app to impersonate when calling legacy...
3
by: Nick Dreyer | last post by:
I was quite surprised to notice that Sub New() gets called twice, once at declaration time and once at creation time. I can't figure out why it would be called at declaration if there is no class...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.