// compile with: cl /clr:safe /LD global_function.cpp #include "stdafx.h" using namespace System; void GlobalFunction() { Console::WriteLine("Global C++/CLI Function."); } public ref class R { public: static void FMember() { Console::WriteLine("C++/CLI Static Member Function."); GlobalFunction(); } };