473,545 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Avoiding DLL hell with unmanaged applications

Can I leverage assemblies to avoid DLL hell with unmanaged code?

I have an unmanaged application that I have ported from MSVC6 to
Visual Studio 2005. This application is a distributed application
which consists of many components. These components use several third
party DLLs. Furthermore, these components link to several inhouse
static libraries that I would like to convert to DLLs.

I would like to be able to install updated DLLs without breaking
existing applications.

I have managed to create a multifile assembly containing one of my
DLLs and have "installed" it using GACUTIL.

I have no idea how to link my application against my dll in the
assembly. The /reference and /linkresource options that I have seen
mentioned in this regard don't seem applicable.

This is how I created my assembly:
al /link:managerDLL d.dll /platform:x86 /out:managerd.dl l /version:1.0.0.0 /keyfile:keypair .snk
CAGUTIL /i managerd.dll
Cheers

Oct 16 '07 #1
0 963

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

Similar topics

3
372
by: New World Order Pigs | last post by:
Sorry if this is the wrong group, but it seems like a good place to start. I have a control, creating a dll written in c#/.net and some unmanaged code in c++ using embedded c++ V3. Yes, it is for PPC2002/PPC2003 but I don't believe that's the significant issue. My question is, can I create a solution that wraps the c++ in c# and combine that...
1
741
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a managed point-of-view I've noticed that: 1) for each managed and unmanaged C function (not C++ classes) I get a public managed static method...
22
2272
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on this deception for some..... "Michael A. Covington" <look@ai.uga.edu.for.address> wrote in message news:%23tKbygELFHA.576@TK2MSFTNGP15.phx.gbl......
7
1911
by: Johan Jooris | last post by:
I can imagine that C++ will remain to have its place in a special kind of applications (device drivers, operating systels, ...) But what is the future of unmanaged C++ for 'normal' applications (e.g. distributed database applications, xml webservice applications) Can't C# be used for real time applications (statefull windows services with...
1
1434
by: Drew Tennenbaum | last post by:
There is an old thread I found on google where the OP was exhibiting the same problems I am seeing. Reference "Debugger hell" posted 7-18-2002 by Sean Gies I am running Visual Studio 2003 RTM. Has this problem been fixed? I have a C# application that calls a managed C++ wrapper of a native C++ dll. Everything works fine. However, I notice...
2
2030
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking afterwards with ILDASM at what is visible in those assemblies from a managed point-of-view I've noticed that: 1) for each managed and unmanaged C function (not C++ classes) I get a public managed static method...
3
2219
by: Paul Kenny | last post by:
Hi, I have developed an application that uses mixed C++ to integrate managed ..NET applications with an unmanaged C++ application whose behaviour I cannot change. The unmanaged C++ application uses the Win32 API's CreateThread fn to create a thread that listens for requests. These requests then call into the mixed C++ code. This all works...
12
1615
by: doug | last post by:
I understand the basics of what managed code offers and that you open yourself up to security issues if you allow unmanaged code. We already have a decent amount of VB6 code to include COM DLLs. If we put wrappers around some of our code or leave some "asis" what makes our existing production code 'evil' just because it is now considered...
4
3020
by: Stephen Walch | last post by:
Our application environment consists of three basic layers: 1. Third-party unmanaged DLLs that were written before the CLR was invented and maintain a significant amount of information (including memory management and connection pooling constructs) as static variables which were intended to scoped to the process. 2. Managed C++ assemblies...
0
7478
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...
1
7437
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
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...
1
5343
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...
0
4960
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...
0
3466
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...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
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 we have to send another system
0
722
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...

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.