473,513 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamically linking a dll...

How can I dynamically link a dll to my C# project. I specifically would like to create a resource dll that I can later load as required by my application. Any help is appreciated.
Robert Vasquez
Nov 16 '05 #1
2 1729

Hi Robert
I guess you need to build a satellite assembly and load it if needed at run
time
Check this link

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemreflectionassemblyclassloadtopic3.asp

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2
Robert,

If you have a .NET dll, you can simply add it as reference and include its
namespace.

If you want to use your C++ dll (no resources), you can use DllImport to
get access to the functions. Refer MSDN about DllImport.

If you want to use a MFC dll with dialogs, It would be very convinent to use
VC.NET. You can directly include the class headers and still take advantage
..NET framework.

If you just need to call a function which will launch a dialog, use
DllImport. If you want a modal dialog, you have to pass the application
handle to dll, and dialog has to use that handle as parent.

COM dll would be better solution in c#

--
Shak
(Houston)
"Robert Vasquez" <Robert Va*****@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
How can I dynamically link a dll to my C# project. I specifically would like to create a resource dll that I can later load as required by my
application. Any help is appreciated.

Robert Vasquez

Nov 16 '05 #3

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

Similar topics

2
1775
by: Kevin Crosbie | last post by:
Hi, I have the following situation: I have a 3rd party DLL which does not include a LIB file, just a header file with typedef declarations for exported functions (It is intended for dynamic...
0
2217
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
3
1745
by: rishi145 | last post by:
i want to build a small cms and wanted to know if it was possible to generate a aspx page dynamically? if so how basically i wan to be able to have a button create new page and name it. thanks...
0
1533
by: has | last post by:
Hi all, need a little bit of advice on dynamically binding an embedded Python interpreter. First, the code for anyone that wants a look: ...
20
2104
by: pratap | last post by:
Could someone clarify how could one reduce the size of an executable code during compile time. Could one use specific compile time flag with makefile or is it advisable to go for dynamic linking....
2
2153
by: Jason_SanDiego2006 | last post by:
Hello all, Hang with me, I'm a little new. I'm working on a web application in C# using ASP.NET 2.0 The goal of my application is to have pages whose styles can be dynamically changed based...
36
3136
by: Martin Larsen | last post by:
Hi, When a PHP program links to a library using include or require (or their _once variations), is the library then linked dynamically or statically? While it might seem irrelevant from a...
20
4258
by: Nickolai Leschov | last post by:
Hello all, I am programming an embedded controller that has a 'C' library for using its system functions (I/O, timers, all the specific devices). The supplied library has .LIB and .H files. ...
7
1241
by: Bala | last post by:
Hi, This is what i am finding out if it is possible. I am not sure but would like to know.. I have a Client application that sends me a condition like this (1 == 'A' && 2 == 'B') || (3 ==...
0
7260
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
7384
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,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
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
7525
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...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3234
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
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
456
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...

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.