Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

is there anyway to convert c#.net application to vc++.net (win 32) application?

if not, how can i use my c#.net application to new vc++.net(win32) app that there isnt any c# code to my end app

thank you

[ once4ever ]
Posted

Win32 is a completely different beast than .Net. C# is managed and relies heavily on the .Net framework whereas Win32 C++ is traditional C++ and more ANSI/MFC based. I'm afraid if you want to convert C# code to Win32 C++ you are going to be in for a world of hurt. You'd be not as bad off if you can convert to mangaged C++ .Net...

 

 

if not' date=' how can i use my c#.net application to new vc++.net(win32) app that there isnt any c# code to my end app[/quote']If I understand what you are asking, you can use win32 code in your C# application by externing the methods you need and importing the DLL directly. Check out this link for more information. I've never tried this in C#, but I have done it in other languages. If you were looking to do the opposite (use the C# code in the C++ app) you can do something simliar in C++ as well. I think there are links in the article I linked to.
  • 2 months later...
Posted

We produce Instant C++, which converts from C# to C++/CLI ("C++ Edition") and VB.NET to C++/CLI ("VB Edition"). Download the demo to try it out (100 line limit on snippets and 1000 line limit on projects).

 

The conversion accuracy is high, but you do have to assembly the resulting header and cpp files into a new C++/CLI project since we don't convert the C# project file to C++/CLI (due to the lack of correspondence between C# and C++ project files and types).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...