大约有 15,000 项符合查询结果(耗时:0.0295秒) [XML]

https://www.tsingfun.com/it/cpp/1488.html 

shared_ptr指针被赋值后,原指针会引用清零、自动释放。 - C/C++ - 清泛网 ...

shared_ptr指针被赋值后,原指针会引用清零、自动释放。shared_ptr指针被赋值后,原指针会引用清零、自动释放。std::shared_ptr<int> intg;void foo(std::shared_ptr<int> p){ ...shared_ptr指针被赋值后,原指针会引用清零、自动释放。 std::sh...
https://www.tsingfun.com/it/cpp/1491.html 

c++ boost库 序列化与反序列化 - C/C++ - 清泛网 - 专注C/C++及内核技术

...alize(Archive& ar, TOrder & obj, const unsigned int version = SERIALIZATION_VERSION) { ar & BOOST_SERIALIZATION_NVP(obj.Param) & BOOST_SERIALIZATION_NVP(obj.OrderRef) & BOOST_SERIALIZATION_NVP(obj.UserID); } BOOST_SERIALIZATION_SHARED_PTR(TestStruct); ...
https://www.tsingfun.com/it/cpp/1495.html 

VC/Linux C++ 递归访问目录下所有文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

...件VC函数,部分代码如下:find(char * lpPath){ char szFind[MAX_PATH]; WIN32_FIND_DATA FindFileData; strcpy(sz...VC函数,部分代码如下: find(char * lpPath) { char szFind[MAX_PATH]; WIN32_FIND_DATA FindFileData; strcpy(szFind,lpPath); strcat(szFind...
https://www.tsingfun.com/it/cpp/1506.html 

std::vector find查找方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...了后面的括号,否则报如下错误: error C3867: “std::vector<_Ty>::end”: 函数调用缺少参数列表;请使用“&std::vector<_Ty>::end”创建指向成员的指针vector find
https://www.tsingfun.com/it/cpp/1541.html 

CListCtrl 扩展风设置方法:SetExtendedStyle和ModifyStyleEx 区别 - C/C...

...常常想到用ModifyStyleEx 来设定,代码如下:ModifyStyleEx(0,LVS_EX_GRIDLINES)这是...对于初学者来说,当他需要设定listctrl的扩展风时,常常想到用ModifyStyleEx 来设定,代码如下: ModifyStyleEx(0,LVS_EX_GRIDLINES) 这是不正确的,正确的...
https://www.tsingfun.com/it/cpp/1589.html 

解决:调MFC dll时发生AfxGetInstanceHandle()断言错误 - C/C++ - 清泛网 -...

...DLL函数入口等)添加以下两行代码 afxCurrentInstanceHandle = _AtlBaseModule.GetModuleInstance(); afxCurrentResourceHandle = _AtlBaseModule.GetResourceInstance();AfxGetInstanceHandle 断言
https://www.tsingfun.com/it/cpp/1920.html 

MFC对话框中处理Enter或Esc按键事件方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

... BOOL CxxxDlg::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN) { switch(pMsg->wParam) { case VK_ESCAPE: //Esc按键事件 return TRUE; case VK_RETURN: //Enter按键事件 OnBnClickedButton1(); ...
https://www.tsingfun.com/it/cpp/2106.html 

error C2280: \'std::mutex::mutex(const std::mutex &)\' : attempting to...

...者标记为delete. 例如: class Account { public: Account(int id_, double ba = 0.0) :id(id_), balance(ba){} void withdraw(double amount){ balance -= amount; } void deposit(double amount){ balance += amount; } void printInfo() const { std::cout << "Account id: " << id ...
https://www.tsingfun.com/it/cpp/2107.html 

[完整实例源码]C&C++修改文件只读属性 - C/C++ - 清泛网 - 专注C/C++及内核技术

...etFileAttributes修改文件属性。代码如下:#include "stdafx.h"int _...先使用GetFileAttributes获取文件属性,判断该文件是否是只读,然后SetFileAttributes修改文件属性。 代码如下: #include "stdafx.h" int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) {...
https://www.tsingfun.com/it/cpp/2116.html 

解决MFC使用ShowWindow(SW_MAXIMIZE)任务栏被遮住的问题 - C/C++ - 清泛网 ...

解决MFC使用ShowWindow(SW_MAXIMIZE)任务栏被遮住的问题重载OnGetMinMaxInfo消息处理函数解决,代码如下:BEGIN_MESSAGE_MAP(CxxxDlg, CDialogEx)...ON_WM_GETMINMAXINFO()END_MESSAGE_MAP()...a...重载OnGetMinMaxInfo消息处理函数解决,代码如下: BEGIN_MESSAGE_MAP(Cx...