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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:32:10+00:00 2026-06-07T05:32:10+00:00

My question is more on the concept and less on the actual code. I

  • 0

My question is more on the concept and less on the actual code.

I have an app in vb.net. I want to port a few classes to native c++ code (not cli) for various reasons. What I want to do is to be able to instantiate and use these classes, like i do in the fully managed app.

I understand that I can call static functions from a native dll, but this is not the case here. I need to instantiate classes and use them through the lifetime of the app.

So the question is, is this possible? And if so, could you point me to the right direction to start?

  • 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-07T05:32:11+00:00Added an answer on June 7, 2026 at 5:32 am

    maybe you can take a look here
    Instantiating a C++ class in C# using P/Invoke via a pointer
    and here
    http://www.codeproject.com/Articles/18032/How-to-Marshal-a-C-Class

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

Sidebar

Related Questions

This is a code review question more then anything. I have the following problem:
ASP.Net MVC3 is cool and all but I have this question more out of
This is more of a concept question than a code question, but I think
Not really a coding question more a little help with my idea of a
This question is more a re-insurance than one directly about how to code. As
i have a question that is more design and architecture related. I am coming
This actually corresponds to my other question but things get more complicated. I have
I have been reading through this similar question and find myself less than satisfied
This is more of a conceptual question than an actual implementation and am hoping
This is more of a concept question rather than a coding problem to be

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.