Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 261949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:28:30+00:00 2026-05-11T22:28:30+00:00

I have to make a graphical user interface application using the language of my

  • 0

I have to make a graphical user interface application using the language of my choice. The application will run on Windows XP. It will be some sort of a complex windows form application.
I think and as per most suggestions, C# will be the best to use.
The tree structure on the left of the GUI will populate after reading from a configuration file which will be a binary file . (but initially I can work with a simple ASCII file to test my code.). The application will accept some inputs from the user through this GUI and will write the back to the same config file and will reflect the changes in the tree structure or the labels or any other pertaining field on the form.

There will be 3 tabs and 3 corresponding config files for each of the tabs.
I need some help designing the application for now. I am planning to make a host application (main application) and use the 3 tab controls as plugins. Is this workable ? If so can you please guide me on this. I mean how do I make 3 plugins in C# and how do I write the interfaces so that the main application knows which plugin to load and when to load it ? Will there be a separate “Plugin” folder under my project folder ? I hope you got my point though this is too little of an information for you to begin with.

Also there are some .cpp files already existing in the project. These files along with some .h files contain some important definitions and constants in them. These need to be integrated with my C# application. I have no clue how to do that but I am sure that it is possible by compiling the .cpp code in a .dll and then exposing the compiled .dll to my C# application. Please let me know if you need some more information for the top level design.

Thanks,
Viren

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:28:30+00:00Added an answer on May 11, 2026 at 10:28 pm

    To implement a plugin interface manually, you will need a method something like this. I’ve left some TODOs in, where you would want to enhance the error handling and/or make the implementation a little more case specific.

        public List<T> LoadPlugin<T>(string directory)
        {
            Type interfaceType = typeof(T);
            List<T> implementations = new List<T>();
    
            //TODO: perform checks to ensure type is valid
    
            foreach (var file in System.IO.Directory.GetFiles(directory))
            {
                //TODO: add proper file handling here and limit files to check
                //try/catch added in place of ensure files are not .dll
                try
                {
                    foreach (var type in System.Reflection.Assembly.LoadFile(file).GetTypes())
                    {
                        if (interfaceType.IsAssignableFrom(type) && interfaceType != type)
                        { 
                            //found class that implements interface
                            //TODO: perform additional checks to ensure any
                            //requirements not specified in interface
                            //ex: ensure type is a class, check for default constructor, etc
                            T instance = (T)Activator.CreateInstance(type);
                            implementations.Add(instance);
                        }
                    }
                }
                catch { }
            }
    
            return implementations;
        }
    

    Example to call:

    List<IPlugin> plugins = LoadPlugin<IPlugin>(path);
    

    As for the c++ part of your question. There are few different ways you could approach this, though the correct choice depends on your specific situation. You can make a clr compliant .dll in c++, which your c# project could reference and call like any other .dll it references. Additionally, you could use P/Invoke to call into a native .dll.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 277k
  • Answers 277k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Sure, it's easy. You just have to specify the message… May 13, 2026 at 3:05 pm
  • Editorial Team
    Editorial Team added an answer Don't put the @BeforeClass on the abstract class. Call it… May 13, 2026 at 3:05 pm
  • Editorial Team
    Editorial Team added an answer Your HTML doesn't look correct; the value for a text… May 13, 2026 at 3:05 pm

Related Questions

I work on an application that has a both a GUI (graphical) and API
I've already realized some applications with a small graphical user interface. Nothing complex, but
In my company we have in mind a redesign of the user interface of
I am working on a Web based organisation tool. I am not aiming the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.