473,830 Members | 2,019 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Late binding" in C#

Hello,

I searched archives and all pointing to use of VB6 objects from C#

I want something different.

1. How can I build expandable platform? Let's say DLL's will have
common set of methods (interface) and I will have main program using
those DLL's. I want to achieve when I won't have to recompile main
program and be able to add modules by dropping them into folder. Then
my main program will know about them from DB.

2. I want something like ActiveX.exe to execute those "plugins" in
their own threads. And it will be ideal if main app won't crash in case
one of the DLL's have bad code. We want DLL's to execute code in it's
own memory space.

Can you give me kewords, pointers on where/what to read on this topic?

TIA!

Oct 9 '06 #1
2 1700
See my 12/1/2005 blog entry

http://sholliday.spaces.live.com/?_c...26ayear%3d2005

12/1/2005
Understanding the Simple Factory Pattern

And the "Reflection " example.

"Katit" <id*********@gm ail.comwrote in message
news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Hello,

I searched archives and all pointing to use of VB6 objects from C#

I want something different.

1. How can I build expandable platform? Let's say DLL's will have
common set of methods (interface) and I will have main program using
those DLL's. I want to achieve when I won't have to recompile main
program and be able to add modules by dropping them into folder. Then
my main program will know about them from DB.

2. I want something like ActiveX.exe to execute those "plugins" in
their own threads. And it will be ideal if main app won't crash in case
one of the DLL's have bad code. We want DLL's to execute code in it's
own memory space.

Can you give me kewords, pointers on where/what to read on this topic?

TIA!

Oct 9 '06 #2
Check out AppDomains and the Activator class

Katit wrote:
Hello,

I searched archives and all pointing to use of VB6 objects from C#

I want something different.

1. How can I build expandable platform? Let's say DLL's will have
common set of methods (interface) and I will have main program using
those DLL's. I want to achieve when I won't have to recompile main
program and be able to add modules by dropping them into folder. Then
my main program will know about them from DB.

2. I want something like ActiveX.exe to execute those "plugins" in
their own threads. And it will be ideal if main app won't crash in case
one of the DLL's have bad code. We want DLL's to execute code in it's
own memory space.

Can you give me kewords, pointers on where/what to read on this topic?

TIA!
Oct 9 '06 #3

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

Similar topics

1
3867
by: Rob Hunter | last post by:
Is there an equivalent to Scheme's LET in Python? LET creates a new binding in the current environment. For example, here's some Scheme code: (let ((x 3)) (let ((f (lambda (arg) (* arg x)))) (let ((x 4)) (f 5))))
3
2246
by: pieter.breed | last post by:
Hi All, It seems as if whenever you rebuild a .net class library you have to rebuild /everything/ which references it. Is this so? I am wondering what happens when you are only doing a minor change on an assembly which does not change any interface at all, if it is not then possible to let your other assemblies use the new one automagically?
2
325
by: Boniek | last post by:
Hi, How I can create property to binding with other objects. I want to create a data object which work as a DataTable. DataTable contains columns and dataTable is used to binding with a textBox etc. How I can create that object but I don't want any static properties in source code. I implemented IDataBinding in my object but when I'm binding my TextBox to this data object than my application raise exception which tell me that my object...
3
1269
by: Coldman | last post by:
which was saying this: "i have an asp:repeater - its values r initialezed w/ a .DataBind() call does it mean any changes user makes on the page will automaticly go to the database? quite unlikely how do u actually send the values to the db - any repeater specific article is more than welcome"
0
3249
by: brian.mills | last post by:
I'm having trouble with a web service I've been using since I've change computers. The project was in source safe, and i've pulled it out, but I can now not change beetween static and dynamic on a web service web reference. It also gives me an error on trying to update it saying it can't consume it. The Error "Custom tool error: Unable to import WebService/Schema. Unable to import binding 'SoapGeneralSoap' from namespace...
2
1644
by: barcrofter | last post by:
Im still confused with interfaces for COM objects. I have a Lotus word processor that I'm trying to automate via vb.net. The exe comes with an interface that I can add as a reference .. but.. I cannot seem to generate an instance of it because (error message) the .tlb file only provides the interface. Thus I use CreateObject("etc") to define an object that picks up the exe. Question: is there any way or trick for binding the object...
1
2101
by: nelsonivan | last post by:
Hi, i'm trying to reference some objects using reflection and Late Binding accessing. The Object API to his methods it's easy to understand, and it's as "Object.Method" - aka. "Clientes.Existe"- So, to reference this object, it was simplier to me resolving this with reflection, and it was something like this:
0
1296
by: Ronald S. Cook | last post by:
Hi, I'm wanting to iterate over a generic IList, but the code won't compile because the blue sqiggle line under: _DataRow("SecurityFunctionName") = _IList(i).SecurityFunctionName; sez "Option Strict On disallows late binding" If I comment out the line and get to that place in the debugger, I can pull
0
868
by: Armin Zingler | last post by:
<Just_a_fan@home.netschrieb After having longer discussions about a similar issue, I ask you to provide an example of the source and destination value(s) and their data types. Thanks. Example (of an example): Source: byte array, content=243 123 45 98 12 Destination: a string containing hex representation of the values, seperated by blanks: "F3 7B 2D 98 0C"
0
9793
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10774
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10491
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10526
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7746
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5617
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4411
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

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.