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

How to use recompiled DLL?

I have an app that uses properties and function return values from certain
DLLs. Each DLL returns the same thing but gets it in a different way. An
abstract class is used to access DLLs.

If I need to change code in one of the DLL methods, then recompile it, is
there a way to have the app use the recompiled DLL without shutting down?
What is the correct approach for this?

Thanks,
Brett
Nov 17 '05 #1
1 1097
Hi,

Yes, you will need to load that DLL to a separate AppDomain (and the
abstract class must be inherited from MarshalByRefObject).
When you need to reload the DLL, shut down that AppDomain, create a new one
and load the DLL into the newly created domain.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Brett" <no@spam.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have an app that uses properties and function return values from certain
DLLs. Each DLL returns the same thing but gets it in a different way. An
abstract class is used to access DLLs.

If I need to change code in one of the DLL methods, then recompile it, is
there a way to have the app use the recompiled DLL without shutting down?
What is the correct approach for this?

Thanks,
Brett


Nov 17 '05 #2

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

Similar topics

205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
3
by: BekTek | last post by:
I have some qustions about recompiling in c++.. Let me show you my example.. I've got a class which has private member.. class A{ private: void somefunc(); };
1
by: Asp.net page not recompiled | last post by:
h i'm developing webapplication using asp.net,vb.net and oralce as backend. the asp.net page was not getting recompiled i mean the coding changes which are done in the asp.net page is not getting...
1
by: Alex | last post by:
I am working on a new project whereby we are going to generate the datalayer dynamically. Multiple customers will use the system and each customer will have their own unique datalayer for each of...
0
by: Brett | last post by:
I have an app that uses properties and function return values from certain DLLs. Each DLL returns the same thing but gets it in a different way. An abstract class is used to access DLLs. If I...
12
by: mike.klaas | last post by:
Hello, Has anyone has issue with compiled re's vis-a-vis the re.I (ignore case) flag? I can't make sense of this compiled re producing a different match when given the flag, odd both in it's...
0
by: jortizclaver | last post by:
Hi, I have a very simple library that wraps a Timer class and a test program linked to it. First of all, I compile the library and the main without the KPIC flag. Then, I execute the program...
0
by: Netter | last post by:
I wrote a vc program many years ago. When I got VS2003 I recompiled it and it compiled OK. I just got VS2005 and tried to recompile it just to see if it would and got many errors. For example...
6
by: billmiami2 | last post by:
I'm experiencing a strange problem that I believe is related to ADO.NET but I can't say for sure. I have a simple ASP.NET reporting interface to a SQL Server 2000 database. One report that we...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: 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...
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.