原创 STL list刪除元素出錯
std::list<CRDepartment>::iterator it = deptList.begin();for (; it != deptList.end();){CString strName = it->szName;Outp
原创 vc 中的cfiledialog用法
CFileDialog fdlg(true,_T("wav"),_T(""),OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,_T("wav|*.wav|all file|*.*||"),this, 0);
原创 DUiLib 源碼分析——第一篇UIManager
DUiLib 源碼分析 ——以UiLib 1.01版爲分析目標 ---------------------------------------------------------------------------------- 分析約
原创 CString、TCHAR*、char*轉換
注:轉載自http://www.cnblogs.com/xchangli/archive/2012/04/13/2445750.html CString->LPTSTR的轉化可以用函數GetBuff() CString StrInfo
原创 Qt5.7.1 - VS2013 單獨編譯QtWebEngine模塊
參考: https://blog.csdn.net/jinzeyu_cn/article/details/53440530 https://stackoverflow.com/questions/50510457/how-to-compi
原创 QMessageBox如何顯示中文按鈕
原文鏈接:https://my.oschina.net/u/1466652/blog/854291 在網上搜索了許多如何將QMessageBox中提示框中的英文(OK、Cancel等)漢化,在儘
原创 vector<string>轉換爲char*[]
int ReqSubMarketData(std::vector<std::string>& vecInstrucment) { char** destination = new char*[vecInstrucment.size()
原创 格式化浮點數
void FormatDouble(double& dlf) { const double InvalidDouble = *(double*)("\xff\xff\xff\xff\xff\xff\xef\x7f"); const d
原创 COM:將不同數據類型打包爲VARIANT
1、std::vector<CString>& vtDocs 打包: CComBSTR bstrVal; CComSafeArray<BSTR> bstrArray; for (int i = 0; i != vtDocs.size();
原创 NSIS-DLL安裝技巧
轉載自 : http://www.zhetao.com/content126 B.1 Introduction The Library header file can be used to setup dynamic link li
原创 C++文件讀寫
std::string strDir = std::string(szSetPath) + std::string("\\out.txt"); ifstream ifs; ofstream ofs(strDir.c_str()); vec
原创 COM編程--字符串結構體轉換
1、將結構體保存到VARIANT中 // @desc : 轉爲安全數組 HRESULT Hr; SAFEARRAY * pSArray; CComQIPtr<IRecordInfo> spRecordInfo; Hr = ::Ge
原创 VS2008的SVN插件AnkhSVN使用詳解
轉載自:http://developer.51cto.com/art/201005/201375.htm 本節講解一下Google項目託管及VS2008的SVN插件AnkhSVN的使用,主要包括十一個步驟,還是比較簡潔實用的,希望通過本
原创 特殊數據類型成員變量的初始化
有些成員變量的數據類型比較特別,它們的初始化方式也和普通數據類型的成員變量有所不同。這些特殊的類型的成員變量包括: a. 常量型成員變量 b. 引用型成員變量 c. 靜態成員變量 d.
原创 c++ standard library note
書籍:《C++ 標準程序庫》 // http://www.gotw.ca/default.htm #1. Default Template Parameters (缺省模板參數) Template classes 可以有缺省參數。例如以