-6
我在VB中編程時沒有任何問題,但我很難得到C++的掛鉤。將字符串^轉換爲Int
我有變量...
newData = gcnew String(nonSharedRXBuffer, 0, newBytesReceived);
myString = newData;
String^ tempString;
unsigned int Value;
和部分代碼....
tempString = newData->Remove(1,(newData->Length)-1);
Value = tempString; **//need to convert the String^ to Int**
newData = newData->Remove(0, 1);
tempString = newData->Remove(1,(newData->Length)-1);
Value = tempString; **//need to convert the String^ to Int**
newData = newData->Remove(0, 1);
如何轉換tempString
(這是一個String^
)到Int
?