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

  • SEARCH
  • Home
  • 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 8550147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:53:06+00:00 2026-06-11T13:53:06+00:00

I have an existing C# application. What I want is to write native code

  • 0

I have an existing C# application. What I want is to write native code for some part of the c# application for speed improvement while another part using C# app and the other part using C++/CLI to provide interfaces to C# application. So for latter part, I need to convert C# code into C++/CLI.

I am wondering if I can convert my C# code to C++/CLI code. Maybe converting .net assembly to C++/CLI would be a better idea to get specific code. I looked into reflector and its addin CppCli. But the addin is not available any more. So I am looking for any way to automate this. I would appreciate any advice.

  • 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-06-11T13:53:07+00:00Added an answer on June 11, 2026 at 1:53 pm

    Generally speaking C++/CLI will have about the same run-time as C# (both are managed and probably would be converted to the same IL). If there is a certain part of your application you need to run faster you can write a C++/CLI layer so your C# app can interop with some native C++. This will be faster if you write your native C++ appropriately.

    EDIT:
    As Ben Voigt pointed out, the C++/CLI might be more optimized than the C#, but still not nearly as fast as well-written native C++ since it’s still managed.

    If you’re looking to wrap some native code in C++/CLI then a conversion tool probably wouldn’t structure it in a useful fashion anyway. You’re better off just hand-coding the interop portion.

    There are commercial tools out there that do this, but I think you’re still better off doing it by hand.

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

Sidebar

Related Questions

I have: existing object oriented native code API (non GUI) GUI application that works
I have an existing iPhone application which starts from a UIViewController. What I want
I write an application based on an already existing database (postgreSQL) using JPA and
I have an application in which i want to provide the people who write
I have an existing multi-threaded application which uses blocking connect() call. However, I want
I have to write an add-in for an existing application. Client will use the
I have an existing application which does all of its logging against log4j. We
We have an existing application that relies heavily on stored procedures and untyped DataSets.
I have an existing application (with MySQL DB). I just got a new requirement
I have an existing application that imports data from a web site api into

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.