You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
398 B

#include <stdio.h>
#ifdef __cplusplus_cli
# include <msclr\marshal_cppstd.h>
void cliFunction()
{
System::String ^ result = "cliFunction";
result = result->Trim();
printf(msclr::interop::marshal_as<std::string>(result).c_str());
}
#else
void cliFunction()
{
printf("cliFunction (but /cli was not passed to the compiler)");
}
#endif
void nonCliFunction()
{
printf("nonCliFunction");
}