473,508 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compilation time vs run time

Hello,

I try to understand was is statically compiled, and what is loaded at
tun time.

I have 3 binary file: Program.exe, Plugin.dll, and Share.dll
Share.dll contains objects used by both Plugin.dll and Program.exe.
I compile these 2 program with Share.dll

Do the 2 binary have an embedded version of Share.dll (compilation
time), or do they load Share.dll at run time?

Then, if I modify Share.dll (add methods and properties, modify the
implementation of the methods, etc.) without removing any public method
or property, can I just replace Share.dll (run time) by the next version
without compiling both programs again?

I try to see if I can update share objects without compiling program
using these share objects.

Thanks
Julien
Nov 16 '05 #1
2 1468
Julien,

As long as you don't change the signature of any methods in the assembly,
you can indeed substitute a new shared DLL without recompiling other
assemblies that might call into it. Indeed, dummy assemblies with stubbed
out method implementations are routinely used as local proxies for remoted
classes -- it's a way to provide the metadata to clients without exposing
the code to hackers.

--Bob

"julien" <ju****@sobrier.net> wrote in message
news:42***********************@news.free.fr...
Hello,

I try to understand was is statically compiled, and what is loaded at tun
time.

I have 3 binary file: Program.exe, Plugin.dll, and Share.dll
Share.dll contains objects used by both Plugin.dll and Program.exe.
I compile these 2 program with Share.dll

Do the 2 binary have an embedded version of Share.dll (compilation time),
or do they load Share.dll at run time?

Then, if I modify Share.dll (add methods and properties, modify the
implementation of the methods, etc.) without removing any public method or
property, can I just replace Share.dll (run time) by the next version
without compiling both programs again?

I try to see if I can update share objects without compiling program using
these share objects.

Thanks
Julien

Nov 16 '05 #2
Yes, you can, unless you have strong-named your assemblies. And yes,
assemblies are loaded at runtime and on-demand. When you compile a
project that refers to other assemblies, only entries are made in the
generated assembly's metadata, the referenced assemblies are not
embedded.

Regards
Senthil

Nov 16 '05 #3

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

Similar topics

11
2540
by: Michael Gaab | last post by:
Compilation in c generally has four phases 1. Preprocessing 2. Compilation 3. Assembly 4. Linking. If I use a flag that will not link the code, order of compilation is not an issue,...
3
3333
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
10
9356
by: RedEagle | last post by:
Hi All! Do you remember me? I am that desperate who had this error for a while: --- Compilation Error Description: An error occurred during the compilation of a resource required to service...
6
1520
by: thomson | last post by:
Hi all, I have compiled by .net web applicaion in my local machine , and a dll has been created on the bin Directory, And i have copied the entire application using xcopy deployment to a...
28
2608
by: richardlang | last post by:
Anyone out there ever come across a preprocessor macro that compares an argument value against the predefined __DATE__ macro in order to control conditional compilation based on date. Something...
3
3375
by: seema | last post by:
Hi all, I am new to C programming. I have problem compiling a sample , #include <stdio.h> int getuniqueaddress1(){ return 1; } int getuniqueaddress2(){ return 2;
8
6574
by: Yaniv | last post by:
Hi I would like to add form with version data like version number and compilation time and date. I would like the time and date to be added automatically to my project. How can I do that?...
35
2983
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
2
3260
by: f0zzyNUE | last post by:
hi everyone, currently we are testing the performance our application (asp.net based CMS) ... for that reason we wrote a "spider" that starts webrequests for all relevant pages which results in...
5
2926
by: David Portabella | last post by:
Hello, I have the following template class: ++++++++++++++++++++++ template <class Valueclass Test { public: void f() { if (typeid(Value) == typeid(string)) cout << "Value is a string" <<...
0
7129
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
7333
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,...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
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...
1
5057
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...
0
3208
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...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.