I do not understand where the legs grow from, the studio debugger from C ++ is from the Stone Age ... I understand that my mistake, but the studio gives a complete nonsense ...
.cpp:
// Helper.cpp #include "stdafx.h" #include "Helper.h" #include <stdlib.h> #include <string.h> #include <cstdio> namespace NativeCpp { System::String^ GetMyString() { System::String^ str = "MyString"; return str; } } .h:
// Helper.h #pragma once using namespace System; using namespace NativeCpp; namespace Helper { public ref class Foundation { public: static String^ CheckStr() { String^ result = GetMyString(); return result; } }; }