大约有 920 项符合查询结果(耗时:0.0042秒) [XML]

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

ATL COM开发入门(二)(ActiveX/COM组件回调JS) - C/C++ - 清泛网 - 专注C/C++及内核技术

...台DOM元素。本文代码基于上篇《ATL COM开发入门(一)(JS调用ActiveX/COM组件)》。 完成的需求:后台ATL代码回调前台js函数,后台ATL启动定时器完成前台计数。截图如下: 分析:完成此需求有两个难点,一是如何回调前台js代...
https://www.tsingfun.com/it/cpp/1300.html 

Win32 创建控件风格不是Win XP的解决方案 - C/C++ - 清泛网 - 专注C/C++及内核技术

...格,而是像Windows 2000的风格,界面很难看。注意,是动态调用CreateWindow来创建控件,不是从资源中加载。 这种情况下,我们怎么办呢,通常说来,造成这种情况都是由于没有正确加载资源,我们知道,像button, combobox, listbox...
https://www.tsingfun.com/it/cpp/1354.html 

BugTrap:程序崩溃快照、bug跟踪之利器 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ceptionFilter (HandleException)确定出现没有控制的异常发生时调用HandleException. // _set_invalid_parameter_handler(HandleInvalidParameter)确定出现无效参数调用发生时调用HandleInvalidParameter. // _set_purecall_handler (HandlePureVirtualCall)确定纯虚函数...
https://www.tsingfun.com/it/cpp/1359.html 

C++中判断文件、目录是否存在的几种方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...pen the file"); } 三、_access 当然C中还有一种方式是直接调用c的函数库。 就是函数 int _access(const char* path,int mode); 这个函数的功能十分强大。 可以看看msdn的详细介绍 #include <io.h> #include <stdio.h> #include <stdlib.h> int main( voi...
https://www.tsingfun.com/it/cpp/1420.html 

MFC CSplitterWnd的用法详解 - C/C++ - 清泛网 - 专注C/C++及内核技术

...FrameWnd::OnCreateClient函数;   3.在OnCreateClient()函数中调用CSplitterWnd类的Create或CreateStatic()函数; 例子: CSplitterWnd m_wndSplitter; BOOL CChildFrame::OnCreateClient( LPCREATESTRUCT lpcs, CCreateContext* pContext) {   BOOL bCreateSpltr =...
https://www.tsingfun.com/it/cpp/1442.html 

mfc 画圆角矩形 - C/C++ - 清泛网 - 专注C/C++及内核技术

...J)hrgnFrame ); pDC->SetBkColor( crBackground ); return TRUE; } 调用方法: void CxxxView::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectan...
https://www.tsingfun.com/it/cpp/1916.html 

MFC 如何移动另一个进程中的窗口,实现窗口同步移动? - C/C++ - 清泛网 - ...

...的窗口句柄,然后 GetWindowRect 获取窗口大小,计算位置后调用 SetWindowPos 移动进程中的窗口。效果...先使用 FindWindow 查找进程中的窗口句柄,然后 GetWindowRect 获取窗口大小,计算好位置后调用 SetWindowPos 移动进程中的窗口。 效...
https://www.tsingfun.com/it/cpp/2060.html 

deque iterator not dereferencable 问题 - C/C++ - 清泛网 - 专注C/C++及内核技术

...段不建议用互斥内核对象是因为关键代码段是用户层的,调用很快,互斥内核对象调用需要从用户态转入内核态!时间很长! deque iterator
https://www.tsingfun.com/it/cpp/2090.html 

error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“...

...int main(int argc, char *argv[]) { //字面值常量为const对象,调用出错 if(find_char("Hello, world.",'.') != string::npos) { cout<<"a sentence."<<endl; } return 0; } 解决方法:如果函数不修改相应实参,应该将引用形参定义为const...
https://www.tsingfun.com/it/cpp/2096.html 

error C2664: “std::list::list(const std::allocator &)”: 不能将参数 1...

...有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 prog33.cpp(13) : error C2664: “std::vector<_Ty>::vector(const std::allocator<_Ty> &)”: 不能将参数 1 从“std::vector<_Ty>”转换为“const std::allocator<_Ty> &” with [ ...