Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have file .cpp (code c++).
How can I convert this file to C#?
Posted
Updated 25-Jan-15 23:01pm
v2
Comments
Richard MacCutchan 26-Jan-15 4:20am    
Google for code converters. The alternative is to do it the hard way.
Kornfeld Eliyahu Peter 26-Jan-15 4:28am    
Also notice that it's not only the convert part, but also what references the original C++ code has...You have to deal with them too!
Richard MacCutchan 26-Jan-15 5:32am    
It would help if you made links clickable.
Leo Chapiro 26-Jan-15 7:15am    
Done :)

If the pieceof C++ code is relatively small the it should be simple, with a bit knowledge of both languages, to hand craft the conversion. On the other hand, if you have a big amount of code (or, anyway, complex code) you may consider packaging it into a DLL and then call the DLL functions from your C# code,
 
Share this answer
 
Comments
TheRealSteveJudge 26-Jan-15 7:17am    
The DLL trick is a brilliant idea! 5*
CPallini 26-Jan-15 9:21am    
Thank you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900