I have been trying to get a std::string to convert to a system::string, the std one is somehow used by default by the namespace that I have create.
The namespace function that I am trying to use is:
string GetDatah::GetData::monster_name() {
return "Test message!";}
When I call this function and try and print this message to a windows form label, the compiler comes up with the error:
Error 1 error C2664: 'void System::Windows::Forms::Control::Text::set(System::String ^)' : cannot convert parameter 1 from 'std::string' to 'System::String ^' c:\documents and settings\peter\my documents\visual studio 2005\projects\c++\prorpg\prorpg game engine\prorpg game engine\Form1.h 100
So the function was passed as a std class string, and the windows form uses system strings...
Is there a way to convert the std::string to a system::string....
Please I can't work this out..

string data type conversion errors
Gurpreet Singh Gill
hemo
String^ GetDatah::GetData::monster_name() {
return "I'm the dot net monstah!";
}
If you have to: Marshal.PtrToStringAnsi().