Combining C++ with C#?

With combining i mean using C++ for the core/main code and C# for the GUI.
Definitely possible.
Last edited on
This combination is called C++/CLI.
Here is an example that demonstrates using features of three languages, C, C++ and C#, together.

1
2
3
4
5
6
7
8
9
10
11
12
 #include	"stdafx.h" 
 #include	<stdio.h> 
 #include	<iostream> 
  
 int main() 
 { 
 	printf( "Hello" ); 
 	std::cout << ", "; 
 	System::Console::WriteLine("World!"); 
  
     return 0; 
 }
Last edited on
Topic archived. No new replies allowed.