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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:04:16+00:00 2026-05-26T10:04:16+00:00

I would like to add my C++ application a C# .NET GUI . My

  • 0

I would like to add my C++ application a C# .NET GUI .
My C++ application is very simple but I have a some Pointer and Reference .

What is the Best way C# will recognize this pointer and Reference?

  • 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-26T10:04:16+00:00Added an answer on May 26, 2026 at 10:04 am

    There are several ways, here are some, and it depends on your taste and on your project.

    a) Use COM interop, if your C++ project is written in COM.

    b) Use COM interop, you can write COM wrappers to your C++ application and use it from C#.

    c) Use C++/CLI, that is, convert your project to become a Managed C++ application and create managed classes in C++ that use your C++ code.
    You can also write a managed C++ dll that loads your C++ dll or static library.

    d) Use P INVOKE C calls, exports DLL C functions from your C++ code that work with your C++ class, call the C functions from C# using [dllimport] attribute.
    You can use type IntPtr and the better and safer SafeHandle to express pointers and references.

    All ways have good things and drawbacks, but every listed tehcnique need a “middle layer”, you cannot call C++ code directly from C#.

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

Sidebar

Related Questions

I have an existing asp.net webforms application that I would like to add some
I have developed one asp.net web application and now i would like to add
I would like to add some interactive capability to a python CLI application I've
Inside my ASP.NET application, I would like to add an iframe where I can
I would like to add reporting capabilities to a .NET application. My data source
I have a small working application in ASP.NET and C#, and I would like
I have a VS2008 C# .NET 3.5 application where I would like to create
My use-case: I already have a working ASP.NET application I would like to implement
I am designing an ASP.NET MVC3 application, and I would like to have a
we have an asp.net application developed by a third party. We would like to

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.