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

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

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...
https://www.tsingfun.com/it/cpp/1918.html 

CListCtrl 如何设置单元格颜色? - C/C++ - 清泛网 - 专注C/C++及内核技术

...eArray Cols; Head.Add(&quot;Item&quot;); Cols.Add(40); //40% Head.Add(&quot;Sub1&quot;); Cols.Add(30); //70% Head.Add(&quot;Sub2&quot;); Cols.Add(30); //100% m_ColListCtrl.InitCtrl(&Head, &Cols); //添加数据 CString Linetitle; int pos=0; for (int x=0; x<10;x++) { Head.RemoveAll(); Linetit...
https://www.tsingfun.com/it/cpp/1966.html 

[源码实例] c/c++获取网卡mac地址 - C/C++ - 清泛网 - 专注C/C++及内核技术

...if ( uRetCode == 0 ) { // 把网卡MAC地址格式化成常用的16进制形式,如0010-A4E4-5802 sprintf(pMicID,&quot;%02x-%02x-%02x-%02x-%02x-%02x&quot;, Adapter.adapt.adapter_address[0], Adapter.adapt.adapter_address[1], Adapter.adapt.adapter_address[2], Adapter.adapt.adap...
https://www.tsingfun.com/it/cpp/2034.html 

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...
https://www.tsingfun.com/it/cpp/2040.html 

error C2780: \'void __cdecl std::sort(_RI,_RI,_Pr)\' : expects 3 argum...

...> using namespace std; void main() { vector<int> ivec1(10,1); sort(ivec1.begin(), ivec1.rend());//类型不匹配的错误 可以在编译时检查出来 } 解决方法: sort函数重载有两个版本,所以出现上面的错误提示,无论哪个版本,...
https://www.tsingfun.com/it/cpp/2060.html 

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() << &quot; &quot;; x.pop(); x.push(x.front()); x.pop(); } cout << endl; return 0; } 这个...
https://www.tsingfun.com/it/cpp/2067.html 

[工程源码实例] C++ ADO 读写Excel源码及注意点 - C/C++ - 清泛网 - 专注C/C++及内核技术

...写Excel!!! #import &quot;C:\Program Files\Common Files\System\ADO\msado15.dll&quot; no_namespace rename(&quot;EOF&quot;, &quot;adoEOF&quot;) rename(&quot;BOF&quot;, &quot;adoBOF&quot;) ... //连接字符串(这里是Excel 2003, 2007的Extended Properties=&quot;Excel 12.0 Xml;貌似找不到驱动,有解决的烦请评论告知下) &quot;Pr...
https://www.tsingfun.com/it/cpp/2097.html 

与迭代器失效相关的错误,例如:0x008D1127 处有未经处理的异常(在 prog34.e...

与迭代器失效相关的错误,例如:0x008D1127 处有未经处理的异常(在 prog34.exe 中): 0xC0000005: 读取位置 0x010AC000 时发生访问冲突。错误代码:#include <iostream>#include <vector>using std::vector;using std::cout;using std::endl; 迭代器失效举例-避免存储...
https://www.tsingfun.com/it/cpp/2101.html 

passing xxx as \'this\' argument of xxx discards qualifiers - C/C++ - 清泛网 - 专注C/C++及内核技术

...员 return name; } }; inline bool operator< (StudentT s1, StudentT s2) { return s1.getId() < s2.getId(); } int main() { set<StudentT> st; StudentT s1(0, &quot;Tom&quot;); StudentT s2(1, &quot;Tim&quot;); st.insert(s1); st.insert(s2); set<StudentT> :: iterator ...
https://www.tsingfun.com/it/cpp/2102.html 

error: cannot dynamic_cast ‘b’ (of type ‘class Base*’) to type ‘c...

...T raw() {return _val;} }; int main() { Base * b = new Derived<int>(1); Derived<int> * d = dynamic_cast<Derived<int>* >(b); cout << d->raw() << endl; return 0; } dynamic_cast