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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:07:57+00:00 2026-05-29T05:07:57+00:00

I have a custom control written in C# that I would like to port

  • 0

I have a custom control written in C# that I would like to port to C++ because it is too slow, and also because I would like to use it in a C++ program as well as C# programs.

I’ve looked at MFC Active X, ATL Active X, and .NET C++. They all seem needlessly complicated. I’d really like to avoid .NET C++ because involving .NET in a C++ program just seems pointless.

Also there don’t seem to be any good tutorials on writing active X controls that aren’t a decade old.

Do you guys know of any decent ActiveX tutorials that target Visual Studio 2008?

Is there any other way that I can accomplish my goals without having to write a COM component. Can I just write a normal control in C++ and stick it in a DLL and have it be usable by both C++ and C# programs? I don’t care about compatibility with GUI form designers.

Thanks!

  • 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-29T05:07:58+00:00Added an answer on May 29, 2026 at 5:07 am

    My original answer was as follows. I will leave it here for people in similar situations.

    If C# is slower than C++ for anything other than complex mathematics, you are doing something wrong. It should be near equal in speed, if not faster.

    C++ inherently means making a GUI is going to involve lots of complexity, reinventing of the wheel, and old documentation. There is no avoiding it.

    The fact that “involving .NET in a C++ program seems pointless” indicates to me that you know very little about the technologies with which you are working.

    My answer: stick with C#, or you will be in over your head. Focus on optimizing what you have, not reinventing the wheel.

    Edit: As Jeff Mercado said, if you do decide to take a native route, I wish you luck with your interop ventures.

    Based on your comment, I am still concerned that you don’t understand the role that .NET C++ (recently replaced by C++/CLI) plays. I think that might just be the perfect solution for you. It allows you to, say, write an ActiveX control in C++ (which is what I would recommend at this point), and then immediately write a .NET wrapper for it without leaving C++, but instead using a rather large C++ extension.

    Yet another addition: Use Visual Studio 2010 if at all possible. C++/CLI is a huge improvement over its predecessors. As for ActiveX, don’t worry if the guides are old. It hasn’t changed much in the past decade.

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

Sidebar

Related Questions

I have written a custom server control which (pseudo-code) looks like public class MyCustomCtrl
I have written a Custom Control that contains the following: [assembly: System.Web.UI.WebResource(InSysControls.AssignmentLists.AssignmentLists.js, text/javascript)] namespace
I have written a custom control that renders some graphics. The graphics itself is
I have a custom control that I have written that does some location checking
I have a Custom Control that has multiple textbox fields and a checkbox contained
I have a custom control that inherits from UserControl , and I can't get
I have a custom control that needs a minor adjustment when running on XP
I have a custom control that displays a tryAgain button when the control is
I have a custom control that inherits from .NET's CompositeControl class. This control overrides
I've written a custom ASP.net control that descends from LinkButton and overrides the Render()

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.