Click here to Skip to main content
15,920,633 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I need to call C# and Java code from C++/C code base.
Please tell the process for the same.

OK some update based on feedback below:
I am having dll having C/C++ code. I am trying to plugin different language components into it, the components are in dll for C# and jar for JAVA.
I would need to call these component functions. I am ok with implementing intermediate layer if ie required.
Posted
Updated 8-Apr-10 3:23am
v2

To invoke C# code from C++ you can create a COM object in C# and then invoke it from C++ or any language you want, or you can use network communication by IPC protocol or using sockets, it will be possible even for JAVA.
 
Share this answer
 
What are you trying to do exactly ? Wherre is this java and C# coming from ? Are they executables (or jar files in case of java) ? Or simply source files ?
 
Share this answer
 

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

  Print Answers RSS


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