As is customary with programming languages, here is a Hello World introduction using C++ /CX.
In order to compile this code, make sure you set the winmd directory containing “platform.winmd” using the LIBPATH environment variable.
Compile this code from the command line using cl.exe and link.exe
then link using the following command
That’s it. Your first program using C++ /CX is now ready. Execute it at the command line and it should print the message “Hello World” to the console.