大约有 5,213 项符合查询结果(耗时:0.0085秒) [XML]

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

scoped_ptr 与 auto_ptr 与 shared_ptr 区别总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

scoped_ptr 与 auto_ptr 与 shared_ptr 区别总结1.auto_ptr 被复制后,将失去原来所致资源的所有权;2.scoped_ptr永远不能被复制或被赋值!scoped_ptr拥有它所指向的资源的所有权,并永远不会放弃这个所有权;3.shared_ptr 是可以共享所有权的...
https://www.tsingfun.com/it/cpp/1424.html 

VC/MFC 临界区域使用方法实例 - C/C++ - 清泛网 - 专注C/C++及内核技术

...继续访问共享的资源。 以下为临界区域的使用方法: *.h头文件: #include <winbase.h> CRITICAL_SECTION m_cs_test; ///< 定义一个临界区域对象 *.cpp源文件使用方法: 在类的构造函数内初始化临界区域对象 //该函数必须在任何线程调...
https://www.tsingfun.com/it/cpp/1447.html 

WSAAsyncSelect模型 - C/C++ - 清泛网 - 专注C/C++及内核技术

...cSelect( SOCKET s, //需要设置的套接字句柄 HWND hWnd, //指定一个窗口句柄, 套接字的通知消息将被发到此窗口中 u_int wMsg, //网络事件到来的ID,可以在WM_USER以上数值中任意指定一个值 long IEvent ...
https://www.tsingfun.com/it/cpp/1490.html 

error LNK2019: 无法解析的外部符号 __imp__PlaySoundW@12,该符号在函数 \...

... __imp__PlaySoundW@12,该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用#include <mmsystem.h>#pragma comment(lib, "WINMM.LIB") #include <mmsystem.h> #pragma comment(lib, "WINMM.LIB") error LNK2...
https://www.tsingfun.com/it/cpp/1517.html 

sndPlaySound, SND_ASYNC 头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

sndPlaySound, SND_ASYNC 头文件#include <mmsystem.h>#pragma comment(lib, "winmm.lib")#include <mmsystem.h> #pragma comment(lib, "winmm.lib")sndPlaySound SND_ASYNC 头文件
https://www.tsingfun.com/it/cpp/1525.html 

XXX.cc:100: error: ‘::strerror’ has not been declared - C/C++ - 清泛网 - 专注C/C++及内核技术

XXX.cc:100: error: ‘::strerror’ has not been declared#include <string.h>解决。#include <string.h> 解决。strerror
https://www.tsingfun.com/it/cpp/1553.html 

CStringArray头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

CStringArray头文件#include <afxwin.h>#include <afxwin.h> CStringArray 头文件
https://www.tsingfun.com/it/cpp/1560.html 

获取控件的值的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...gItemText(IDC_EDIT_TEST, str);int d=atoi(str.GetBuffer(0));更优雅的:.h:int m_editTest;.cpp:v...最简单直观的: CString str; GetDlgItemText(IDC_EDIT_TEST, str); int d=atoi(str.GetBuffer(0)); 更优雅的: .h:int m_editTest; .cpp: void CxxDlg::DoDataExchange(CDataExcha...
https://www.tsingfun.com/it/cpp/1561.html 

DoModal() 不显示的问题总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...情况一般是.rc资源文件的问题导致。1、核对一下resource.h,本...int nResponse = dlg.DoModal();对话框窗口不显示,返回值为-1。 出现这种情况一般是.rc资源文件的问题导致。 1、核对一下resource.h,本工程里面有两个,对于同一个宏 #...
https://www.tsingfun.com/it/cpp/1562.html 

warning RC2182: duplicate dialog control ID 1002 - C/C++ - 清泛网 - 专注C/C++及内核技术

...2),与其他的控件ID值一样,发生冲突了。解决:resource.h中将值一样的控件ID改为不同的值。原因:报错行的控件ID值(这里是1002),与其他的控件ID值一样,发生冲突了。 解决:resource.h中将值一样的控件ID改为不同的值。RC218...