ref class UtilCallOptions { private: String^ currentPath; }; 

leads to:

 UtilCallOptions.h(4): error C2143: синтаксическая ошибка: отсутствие ";" перед "^" UtilCallOptions.h(4): error C4430: отсутствует спецификатор типа - предполагается int. Примечание. C++ не поддерживает int по умолчанию UtilCallOptions.h(4): error C4430: отсутствует спецификатор типа - предполагается int. Примечание. C++ не поддерживает int по умолчанию 

The class code is still there, but, apparently, the source of errors in the 4th line. Google / Yandex does not really help. Probably, I make some stupid mistake, please help.

  • most likely missing some kind of include or using - Grundy

1 answer 1

Indeed, screwed up. Before the class code you need to insert using namespace System;