By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,452 Members | 1,571 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,452 IT Pros & Developers. It's quick & easy.

Compiling C++ Code

P: n/a
Hi All,
I have a requirement where I have a piece of C++ code and C# code
which i need to compile and call the methods in it( the signature of
the methods that will be in it, i know before hand ) from a C# code. I
got how to do it for C# code. Using CSharpCodeProvider class. But i
want to know if theres a way of doing it for native C++ code from C#.

Thanks & Regards,
Arun Prakash.B
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Compile the C++ code into a DLL and call it from C# using P/Invoke? Unless
I'm missing something. AFAIK there's no such thing as a "code provider" for
C++ as there is for C# and VB.NET.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"ArunPrakash" <ar**********@yahoo.com> wrote in message
news:61**************************@posting.google.c om...
Hi All,
I have a requirement where I have a piece of C++ code and C# code
which i need to compile and call the methods in it( the signature of
the methods that will be in it, i know before hand ) from a C# code. I
got how to do it for C# code. Using CSharpCodeProvider class. But i
want to know if theres a way of doing it for native C++ code from C#.

Thanks & Regards,
Arun Prakash.B

Nov 15 '05 #2

P: n/a
Right, that's my understanding too. The code providers are for J#, C#, and
VB.Net to my understanding.

"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:Ok**************@TK2MSFTNGP10.phx.gbl...
Compile the C++ code into a DLL and call it from C# using P/Invoke? Unless
I'm missing something. AFAIK there's no such thing as a "code provider" for C++ as there is for C# and VB.NET.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"ArunPrakash" <ar**********@yahoo.com> wrote in message
news:61**************************@posting.google.c om...
Hi All,
I have a requirement where I have a piece of C++ code and C# code
which i need to compile and call the methods in it( the signature of
the methods that will be in it, i know before hand ) from a C# code. I
got how to do it for C# code. Using CSharpCodeProvider class. But i
want to know if theres a way of doing it for native C++ code from C#.

Thanks & Regards,
Arun Prakash.B


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.