大约有 45,000 项符合查询结果(耗时:0.0324秒) [XML]
MFC CSplitterWnd的用法详解 - C/C++ - 清泛网 - 专注C/C++及内核技术
...// TODO: Add your specialized code here and/or call the base class
if (!m_wndSplitter.CreateStatic(this, 1, 2))
return FALSE;
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftView), CSize(160, 200), pContext) ||
!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(...
CMap用法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...; //把str1覆盖了
//查找(方法一:Lookup)
CString str;
if (map.Lookup(1, str))
{
printf("find:%s\n", str);
}
//查找(方法二:PLookup)
CMapInt::CPair* pPair = map.PLookup(1);
if (pPair)
{
printf("find:%s\n", pPair->value);
}
//遍历
CMapInt::C...
c++ boost库 序列化与反序列化 - C/C++ - 清泛网 - 专注C/C++及内核技术
...
BOOST_SERIALIZATION_SHARED_PTR(TestStruct);
2、save、load函数:
#ifndef STRUCT_SAVE_LOAD_H_
#define STRUCT_SAVE_LOAD_H_
//
#include <string>
#include <fstream>
//
#include "boost/archive/text_iarchive.hpp"
#include "boost/archive/text_oarchive.hpp"
#include "boost/archive/xml_iarch...
vc/mfc *通配符 批量删除文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
... FileOp.pFrom = delFileName;
FileOp.pTo = NULL;
if (SHFileOperation(&FileOp) != 0)
printf("删除文件:%S失败(Error:%d)\n", delFileName, GetLastError());
return 0;
}
经过测试,文件路径必须为绝对路径,相对路径会操作...
c++ boost::multi_index composite keys efficiency - C/C++ - 清泛网 - 专注C/C++及内核技术
...cal order, i.e. sorting is performed by the first key, then the second key if the first one is equal, etc". Does this mean that the structure is stored such that a lookup for a specific 2-part composite key will take O(n=1) time, i.e. is the container sorted such that there is a pointer directly to ...
C++字符串截断时中文的处理问题(中文被截断怎么处理?) - C/C++ - 清泛网...
...理?) 防止后台错误消息中汉字双字节被截断出现乱码if (pRspMsg->RspMsg.buf[pRspMsg->RspMsg.Length() - 2] & 0x80) pRspMsg->Rsp...// 防止后台错误消息中汉字双字节被截断出现乱码
if (pRspMsg->RspMsg.buf[pRspMsg->RspMsg.Length() - 2] & 0x80) //是否是...
c++读注册表 - C/C++ - 清泛网 - 专注C/C++及内核技术
...xx"));
HKEY hKey;
LONG rc = RegOpenKey(HKEY_LOCAL_MACHINE, key, &hKey);
if (ERROR_SUCCESS == rc)
{
WCHAR szBuffer[MAX_PATH];
DWORD dwBufferSize = sizeof(szBuffer);
rc = RegQueryValueEx(hKey, _T("Path"), NULL, NULL, (LPBYTE)szBuffer, &dwBufferSize);
if (ERROR_S...
csplitterwnd 窗口不能自适应的解决方法 - C/C++ - 清泛网 - 专注C/C++及内核技术
csplitterwnd 窗口不能自适应的解决方法if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext)) { TRACE0("Failed to cr...if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext))
{
TRACE0("Failed to ...
mfc spin control 用法 - C/C++ - 清泛网 - 专注C/C++及内核技术
mfc spin control 用法BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg)END_MESSAGE_MAP().h:a...BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx)
ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg)
END_MESSAGE_MAP()
.h:afx_msg v...
MFC OnKeyDown没反应,不响应键盘操作 - C/C++ - 清泛网 - 专注C/C++及内核技术
...G* pMsg);
...
BOOL CxxxDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message == WM_KEYDOWN)
{
if (pMsg->wParam == VK_CONTROL)
{
AfxMessageBox(_T("Ctrl pressed!"));
}
}
return __...
