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

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

如何获取IE (控件)的所有链接(包括Frameset, iframe) - C/C++ - 清泛网 -...

...候, IHTMLWindow2::get_document 调用将返回 E_ACCESSDENIED 。 下面函数 HtmlWindowToHtmlDocument 对于跨域的frame 通过 IHTMLWindow2 -> IID_IWebBrowserApp -> IHTMLWindow2 绕过了限制。 // Converts a IHTMLWindow2 object to a IHTMLDocument2. Returns NULL in case of failure. // I...
https://www.tsingfun.com/it/cpp/1823.html 

Linux automake自动编译全攻略 - C/C++ - 清泛网 - 专注C/C++及内核技术

...文件calc.h: #include <stdio.h> int add(int a, int b); lib目录函数实现calc.c: #include "calc.h" int add(int a, int b) { return a + b; } 主目录下测试代码test.c: #include <stdio.h> #include "lib/calc.h" int main(int argc, char** argv) { ...
https://www.tsingfun.com/it/cpp/1908.html 

如何利用VS定位程序崩溃的源码行 - C/C++ - 清泛网 - 专注C/C++及内核技术

... (注:没有源码,但有pdb文件的话,堆栈中会有崩溃的函数、源码行号等信息,也可辅助调查) 1354VS 定位 程序崩溃 源码行
https://www.tsingfun.com/it/cpp/1922.html 

MFC非客户区完美自绘(标题栏,边框,标题按钮)例子 - C/C++ - 清泛网 - 专...

...,这样更简便些。先设置Dialog为无边框的,然后在OnPaint函数中指定上面一个区域绘制标题栏,元素可以以图片(位图)填充,这样做非常灵活,一些软件漂亮的界面都是采用图片GDI自绘拼出来的。 本文系清泛网整理。 MFC ...
https://www.tsingfun.com/it/cpp/1947.html 

进程间通信(IPC)的几种方式 - C/C++ - 清泛网 - 专注C/C++及内核技术

...管道的使用方法与文件类似,都能使用read,write,open等普通IO函数. 管道描述符来类似于文件描述符. 事实上, 管道使用的描述符, 文件指针和文件描述符最终都会转化成系统中SOCKET描述符. 都受到系统内核中SOCKET描述符的限制. 本质上...
https://www.tsingfun.com/it/cpp/2043.html 

error C2872: “count”: 不明确的符号 - C/C++ - 清泛网 - 专注C/C++及内核技术

...; } 2) 使用命名空间引用变量,在命名空间中定义变量、函数和类。 #include <iostream> using namespace std; namespace global { int count = 0;//重新定义一个命名空间 } int increment() { return ++global::count; } int main() ...
https://www.tsingfun.com/it/cpp/2098.html 

...VC\\INCLUDE\\iterator(93) : error C2039: “push_front”: 不是“std...

...nt操作。因此,解决的方法就是使用back_inserter 或者inserter函数返回的插入迭代器来进行操作。 error C2039 push_front
https://www.tsingfun.com/it/cpp/2112.html 

MFC 获取并移动其他应用程序窗口的方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...w name,子窗口标题 ); 2、WindowFromPoint:利用WindowFromPoint函数得到指定坐标点所在的窗口句柄,这种方法不依赖窗口信息。 void CDlgSpy::OnMouseMove(UINT nFlags, CPoint point) { POINT pnt; ::GetCursorPos(&pnt); HWND hwndCur = ::WindowFromPoint(pnt)...
https://www.tsingfun.com/it/cpp/2161.html 

socket网络编程中read与recv区别 - C/C++ - 清泛网 - 专注C/C++及内核技术

...性能会比直接read 进行循环读要好一些。 2、read 与 recv函数调用 read(sockfd, buff, buff_size); write(sockfd, buff, buff_size); recv(sockfd, buff, buff_size,MSG_WAITALL); //阻塞模式接收 send(scokfd, buff, buff_size,MSG_...
https://www.tsingfun.com/it/cpp/2165.html 

Gdiplus::Bitmap::LockBits \"Invalid Parameter\" - C/C++ - 清泛网 - 专注C/C++及内核技术

...致的。 解决方法:使用GDI CBitmap或使用正确的字符转换函数。GDI+,Gdiplus,Bitmap,LockBits,Invalid Parameter