大约有 49,000 项符合查询结果(耗时:0.0791秒) [XML]
在ATL无窗口ActiveX 控件中如何使用定时器? - C/C++ - 清泛网 - 专注C/C++及内核技术
... ID_TIMER, // 定时器标识
1000, // 1 秒间隔
(TIMERPROC)TimerProc); // 回调函数ATL ActiveX 定时器
Linux常用命令(持续更新...) - C/C++ - 清泛网 - 专注C/C++及内核技术
...空间不足,查看各目录占用情况:
cd xxx
du -h --max-depth=1
查找文件(例如/usr目录下查找包含'apache'的目录和文件):
find /usr -name apache
find /usr -name apache -type f (只找文件)
find /usr -name apache -type d (只找目录)
查看进程:
...
MFC 如何移动另一个进程中的窗口,实现窗口同步移动? - C/C++ - 清泛网 - ...
...
//等待上面创建进程并启动完毕
HWND hMain = NULL;
while(1)
{
if (hMain = ::FindWindow(NULL, "登录 - xxx"))
{
CRect rect, rectDlg;
pMainFrame->GetWindowRect(&rect);
::GetWindowRect(hMain, rectDlg);
::SetWindowPos(hMain, NULL, rect.right-10, rect.top, rec...
CListCtrl 如何设置单元格颜色? - C/C++ - 清泛网 - 专注C/C++及内核技术
...eArray Cols;
Head.Add("Item");
Cols.Add(40); //40%
Head.Add("Sub1");
Cols.Add(30); //70%
Head.Add("Sub2");
Cols.Add(30); //100%
m_ColListCtrl.InitCtrl(&Head, &Cols);
//添加数据
CString Linetitle;
int pos=0;
for (int x=0; x<10;x++)
{
Head.RemoveAll();
Linetit...
C/C++ 如何向上取整? - C/C++ - 清泛网 - 专注C/C++及内核技术
...t)ceil((double)a / (double)b));
//补整方法
printf("%d\n", (a + b-1) / b);
return 0;
}
运行结果:
注意:ceil函数参数是double类型。同理,double向下取整使用floor函数(整数直接除就ok)。
使用floor函数。floor(x)返回的是小于或等于x...
[源码实例] c/c++获取网卡mac地址 - C/C++ - 清泛网 - 专注C/C++及内核技术
...if ( uRetCode == 0 )
{
// 把网卡MAC地址格式化成常用的16进制形式,如0010-A4E4-5802
sprintf(pMicID,"%02x-%02x-%02x-%02x-%02x-%02x",
Adapter.adapt.adapter_address[0],
Adapter.adapt.adapter_address[1],
Adapter.adapt.adapter_address[2],
Adapter.adapt.adap...
Linux编程中各种头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
...五种类型、一些宏和通用工具函数。类型例如size_t、wc...1.stdlib.h
stdlib 头文件里包含了C、C++语言的最常用的系统函数
stdlib.h里面定义了五种类型、一些宏和通用工具函数。类型例如size_t、wchar_t、div_t、ldiv_t和lldiv_t;宏例如EXI...
error C2872: “count”: 不明确的符号 - C/C++ - 清泛网 - 专注C/C++及内核技术
...conflict.cpp(4) : int count 或 C: Program Files Microsoft Visual Studio 11.0 V...error C2872: “count”: 不明确的符号
可能是“conflict.cpp(4) : int count” 或 “C:\Program Files\Microsoft Visual Studio 11.0\VC\INCLUDE\xutility(3251) : iterator_traits<_Iter>::difference_type std::...
deque iterator not dereferencable 问题 - C/C++ - 清泛网 - 专注C/C++及内核技术
...amespace std;
int main()
{
queue<int> x;
for(int i = 0;i < 10;i++)
{
x.push(i+1);
}
while(!x.empty()) {
cout << x.front() << " ";
x.pop();
x.push(x.front());
x.pop();
}
cout << endl;
return 0;
}
这个...
[工程源码实例] C++ ADO 读写Excel源码及注意点 - C/C++ - 清泛网 - 专注C/C++及内核技术
...写Excel!!!
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "adoEOF") rename("BOF", "adoBOF")
...
//连接字符串(这里是Excel 2003, 2007的Extended Properties="Excel 12.0 Xml;貌似找不到驱动,有解决的烦请评论告知下)
"Pr...
