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 6334539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:40:44+00:00 2026-05-24T18:40:44+00:00

I need to write a plug-in for a MFC application: – plug-in is deployed

  • 0

I need to write a plug-in for a MFC application:
– plug-in is deployed as dll.
– On the runtime, the MFC application will call the plugin and the plugin shows a custom dialog.
– the dll needs to be dynamically loaded, the MFC application should not be re-complied if the dll is updated.

I mainly code in .net and after playing with MFC, everything just seems too odd for me (no events/delegates etc). I’m fine to write a MFC dll but if I can do that in .net then I’ll willing to give it a try. A possible solution is that I can write a C# dll and expose it as COM. Since I don’t know anything about COM, here are my questions:
– Does the .net framework needs to be installed on client’s machine?
– Can COM be dynamically loaded from a MFC application?
– I read something about registering the assembly with COM, does this happen on client’s machine? (if yes, then the installer might need to be updated)
– Is it easy to use COM in a MFC application (this requires MFC devs to modify their code)

Or, given if there is too much effort to make the connection between .net, COM and MFC, would you suggest me to code in MFC? Thanks.

UPDATE:
I decide to use C++/CLI as a bridge between MFC and .Net. A mixed C++/CLI dll can be called from MFC application and the dll can utilize .net framework. Thus I can code the UI with C# in another dll and that dll can be called by C++/CLI.

References:

  1. Native and .NET Interoperability
  2. Integrate Windows Forms Into Your MFC Applications Through C++ Interop
  • 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-24T18:40:45+00:00Added an answer on May 24, 2026 at 6:40 pm

    Does the .net framework needs to be installed on client’s machine?

    Yes the frame work must be installed on the client’s machine

    Can COM be dynamically loaded from a MFC application?

    It can, the MFC application will load your DLL dynamically, it can call it without being updated as long as your class’s public interface doesn’t change

    I read something about registering the assembly with COM, does this happen on client’s machine? (if yes, then the installer might need to be updated)

    Yes the .NET COM object (or any COM object for that matter) must be registered on the client’s machine. You can use the building setup project in Visual Studio do to that

    Is it easy to use COM in a MFC application (this requires MFC devs to modify their code)

    It should be reasonably easy, but that’s more a question for the MFC dev’s

    Would you suggest me to code in MFC

    Do you know C++ or MFC? If not it’s probably a lot more work.

    Another option would be to write the component in C++/CLR. It can expose unmanned functions/classes which would be directly callable from the MFC application.

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

Sidebar

Related Questions

I would like to write a plug-in that will allow a custom written CRM
I need to write a program used internally where different users will have different
I need to write a Delphi application that pulls entries up from various tables
I need to write a web application using SQL Server 2005, asp.net, and ado.net.
I need to write test cases for my application. I've chosen NUnit. Please let
I need to know how to start writing an application based on plug-in architecture.
I'm writing a plug-in for an application where I have a custom class that
We're developing an application that will have a plug-in architecture to allow consumers of
My application has a plug-in model that allows third-party developers to write assemblies that
I need to write an application in VB6 which makes a scatter plot out

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.