473,771 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

use a program to add a new class

134 New Member
Hello all,

Anyone here who knows whether it is possible to add a new class to a program?
For example: program a is my main program and I want to use program b to just add a new class to program a.
Anyone here who knows if this is possible or not?

Michael
Nov 30 '12 #1
5 2636
zmbd
5,501 Recognized Expert Moderator Expert
Are you talking about the compiled program?
Dec 2 '12 #2
michaeldebruin
134 New Member
No it is more like I've got a program which is already compiled and everything. And it is fully operational. But then I decide to create a short plugin for it, which people can add if they want. But I am just trying to find out what's the best way to include that plugin into my main program.

So it should be like this example:

I've got my working program and it got class 1 and 2 and then I want to use my plugin to add class 3 to add it. So my main program got some more functionality.

Any idea what's the best way to do something like that?
Thanks for any help,

Michael
Dec 2 '12 #3
zmbd
5,501 Recognized Expert Moderator Expert
I've not worked with C#; however, it would seem to me that your main program could be designed so that it would check with a given directory for additional libraries. You'd need to code the libraries so that your main program could call them with a standard command that would return the functions/functionality of the "add-in."
This would be something along the lines of how MS.I.E. or most other programs that allow third party add-ins work.
Dec 2 '12 #4
PsychoCoder
465 Recognized Expert Moderator Contributor
Here's a pretty good article on plugins in C# that may lead you down the path you're looking for.
Dec 3 '12 #5
michaeldebruin
134 New Member
oke thanks a lot PsychoCoder.
Dec 3 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
12368
by: Hal Vaughan | last post by:
I want to have a config file for my program, which means I need to know where the config file is. If I type: java myclass and it runs myclass.class, is there any way to obtain the location of the file myclass.class? Will this work if it's run from a relative path, like: java ../progs/myclass
21
4080
by: Jon Slaughter | last post by:
I have a class that is basicaly duplicated throughout several files with only members names changing according to the class name yet with virtually the exact same coding going on. e.g. class A { std::vector<B*> Bs; public:
6
1515
by: TZ | last post by:
I have two classes, UIHousehold and WIZEditHousehold (both are winforms). UIHousehold creates and shows the WIZEditHousehold (WIZEditHousehold can't be modal, so UIHousehold doesn't know when WIZEditHousehold closes). A reference to a buffer within UIHousehold is supplied (passed by REF) to the constructor of WIZEditHousehold - that constructor saves the reference to the buffer in a member variable.
43
2093
by: Tony | last post by:
I'm working with GUI messaging and note that MFC encapsulates the message loop inside of a C++ class member function. Is this somehow inherently less robust than calling the message loop functions within main? (It just doesn't "feel" right to me). Example 1: class MyProg { public:
15
2409
by: Victor Bazarov | last post by:
Hello, Take a look at this program: ----------------------------------- class B { B(const B&); B& operator=(const B&); public: B(int);
2
2003
by: veniasv | last post by:
create a program in c++ class name called complex and perform the multiplication complex numbers
2
1288
by: Elaine121 | last post by:
hi i created this program for a university project but i don't know how to fix the problem. here is the program: // class public class Employee { private double Wage = 0, pay = 0; private double hoursWork; public void setWage(double aWage) {
2
3082
by: Latina | last post by:
Hi I am doing a program overloaded operator. I am having a few errors on it. Error1: request for member `insertElement' in `S1set', which is of non- class type `IntegerSet' Error2: no matching function for call to `IntegerSet::operator+ (IntegerSet)' Here is my program: class IntegerSet { private:
12
2168
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, I have a class which "BiologySequence" which looks about like this. public class BiologySequence { private string _Sequence; public string Sequence {
5
2955
by: want.to.be.professer | last post by:
For OO design, I like using virtual member function.But considering efficiency, template is better. Look at this program, class Animal { public: virtual void Walk() = 0; }; class Dog
0
9619
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
9454
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
10103
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
10038
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,...
0
8934
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6713
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.