1.动态数组定义
例如:std::vectorDBData::DB_ZuanKong zks(0);
2.将指定对象的值转换为等效的字符串表示形式
System::Convert::ToString(System::Object^ value)
例如:System::Convert::ToString(this->comboBox_RQD显示格式->SelectedItem)
3.System::String 转化为std::string wstring int32 long double方法
std::string ConvertTostdstring(System::String^ str)
{
char* strP = (char*)(void*)System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(str);
std::string outStr(strP);
System::Runtime::InteropServices::Marshal::FreeHGlobal((System::IntPtr)strP);
return outStr;
}
std::wstring ConvertTostdwstring(System::String^ str)
{
wchar_t* strP = (wchar_t*)(void*)System::Runtime::InteropServices::Marshal::StringToHGlobalUni(str);
std::wstring outStr(strP);
System::Runtime::In