摘要: C#, value type passed by value:(int a)— C++/CLI: the same:(int a)C#, value type passed by ref:(ref int a)— C++/CLI: the same:(int %a)C#, reference typ... 阅读全文
posted @ 2014-09-28 08:31 rain_2012_qf 阅读(429) 评论(0) 推荐(0) 编辑
摘要: static std::wstring Utf8ToWString(const std::string& sText){int nLenWideCharStr = MultiByteToWideChar(CP_UTF8, 0, sText.c_str(), -1, NULL, 0);PWCHAR p... 阅读全文
posted @ 2014-09-18 14:00 rain_2012_qf 阅读(829) 评论(0) 推荐(0) 编辑
摘要: std::string SystemStringToStdString( System::String^ sData ){ int q=(int)System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(sData); char* ... 阅读全文
posted @ 2014-09-18 13:38 rain_2012_qf 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 使用场景:界面中的ComboBoxEdit对应的数据来源可配置,可能是字符串类型,如城市名,也可能是数值类型,如手机号码。对于城市名时,通常会内置常用城市名,通过下拉框的形式,进行快速选择,而对于手机号码,则通常需要手动输入,使用下拉框的操作方式,体验并不好,需要根据数据来源,动态的切换效果。处理方... 阅读全文
posted @ 2014-09-17 14:54 rain_2012_qf 阅读(1576) 评论(0) 推荐(0) 编辑