KOD cpp: • UKRYJ •
String^ f = (ihashtable[ext])->ToString();
, gdzie ihashtable jest wypełnione (klucze) typem string(C#), a ext jest typem String^(C++/CLI).
Nie wiem w czym tkwi problem. Może klasa Hashtable odróżnia string i String^.
error C2677: binary '[' : no global operator found which takes type 'System::String ^' (or there is no acceptable conversion) |
Link na msdn, jest kod w C++ i w C#
http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx#Y3100