随笔分类 -  VC

摘要:添加新的源地址http://www.nuget.org/api/v2/,并勾选上。 阅读全文
posted @ 2017-04-22 23:59 细雨细语 阅读(941) 评论(1) 推荐(0)
摘要:#include #include bool WcharToChar(const wchar_t* wp, std::string& str) { int len = WideCharToMultiByte(CP_ACP, 0, wp, wcslen(wp), NULL, 0, NULL, NULL); str.resize(len + 1); return Wid... 阅读全文
posted @ 2017-04-10 23:05 细雨细语 阅读(392) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-03-21 17:23 细雨细语 阅读(133) 评论(0) 推荐(0)
摘要:1,DirectShow系统DirectShow系统位于应用层中。它使用一种叫Filter Graph的模型来管理这个数据流程处理过程,参与数据处理的各个功能模块叫做Filter,各个Filter在Filter Graph中按一定的顺序链接成一条"流水线"协同工作。Filter按照功能可分为3类:Source Filter; Transfor Filter:数据格式转换,例如数据流分离/合成、解码... 阅读全文
posted @ 2016-11-23 21:24 细雨细语 阅读(166) 评论(0) 推荐(0)
摘要:一:材料 1, vs2010 2, winsdk7.1 http://www.microsoft.com/en-us/download/details.aspx?id=8442 更具自己电脑选择32或64位版本,或是用winsdk_web网络安装。 红框的文件夹肯能没有,先建好相应文件夹。 删掉vs2010Redistribu... 阅读全文
posted @ 2016-11-08 16:14 细雨细语 阅读(1739) 评论(0) 推荐(0)
摘要:1,offsetofclass获取基类相对于子类的偏移位置。#define _ATL_PACKING 8#define offsetofclass(base, derived) ((DWORD_PTR)(static_cast((derived*)_ATL_PACKING))-_ATL_PACKING)_ATL_PACKING非零就行,只是作为一个地址。因为为了避免虚类无法创建对象的... 阅读全文
posted @ 2016-09-05 18:58 细雨细语 阅读(1689) 评论(0) 推荐(0)
摘要:1,#ifdef _ATL_DISABLE_NO_VTABLE#define ATL_NO_VTABLE#else#define ATL_NO_VTABLE __declspec(novtable)#endifThis form of __declspec can be applied to any 阅读全文
posted @ 2016-05-22 18:10 细雨细语 阅读(491) 评论(0) 推荐(0)
摘要:1, InternetOpen创建根句柄,由下一层的InternetOpenUrl和InternetConnect使用,而InternetConnect创建的句柄又被之后的几个函数使用。HINTERNET InternetOpen( _In_LPCTSTR lpszAgent, _In_DWORD dwAccessType, _In_LPCTSTR lpszProx... 阅读全文
posted @ 2016-05-16 00:35 细雨细语 阅读(535) 评论(0) 推荐(0)
摘要:昨天编译就报错: c1xx : fatal error C1023: ‘UnicodeDebug\ImEngine.pch’ : unexpected error with pch, try rebuilding the pch ———————————————————————– 查了半天应该是ASL 阅读全文
posted @ 2016-03-11 13:25 细雨细语 阅读(2167) 评论(0) 推荐(0)
摘要:1,如果表不存在就新建一个 CComBSTR bstrCreatBat(L”CREATE TABLE IF NOT EXISTS tb_Name (\ rowIdIndex INTEGER PRIMARY KEY ASC AUTOINCREMENT,\ richContent TEXT,\ type 阅读全文
posted @ 2016-03-09 21:24 细雨细语 阅读(444) 评论(0) 推荐(0)
摘要:0,获取指定的系统路径: #include #pragma comment(lib, "shell32.lib") TCHAR szPath[MAX_PATH]; ::SHGetSpecialFolderPath(NULL, szPath, CSIDL_PERSONAL, FALSE);1,打开... 阅读全文
posted @ 2015-08-12 14:55 细雨细语 阅读(352) 评论(0) 推荐(0)
摘要:优化程序的时候发现鼠标放在控件上不动也会不停的收到WM_MOUSEMOVE消息。1,于是想了各种办法寻找是哪儿触发的。bp USER32!PostMessageW ".echo PostMessageW_Breakpoint_hit; g"bp USER32!SendMessageW ".echo ... 阅读全文
posted @ 2015-08-05 20:09 细雨细语 阅读(827) 评论(0) 推荐(0)
摘要:0,安装VS2013;DXSDK_Jun10.exe;QuickTimeSDK.exe1,WebKit-r174650.tar.bz2 以管理员解压(非管理员解压最后几下总是报错)2,设置环境变量WEBKIT_HOME:D:\WebKit\WebKit-r174650WEBKIT_LIBRARIES... 阅读全文
posted @ 2015-05-23 01:10 细雨细语 阅读(333) 评论(0) 推荐(0)
摘要:公司开发只能用英文版的VS2005 (雅蠛蝶)Tool-->Options-->Debugging->General:把Require source files to exactly match the orginal version的复选勾去掉就OK了。 阅读全文
posted @ 2015-05-19 18:21 细雨细语 阅读(353) 评论(0) 推荐(0)
摘要:1,创建COM组件2,调用COM3,MFC调用COM 阅读全文
posted @ 2014-08-09 23:46 细雨细语 阅读(303) 评论(0) 推荐(0)
摘要:1,进程内组件:服务程序杯加载到客户的进程空间,通常是DLL的形式。本地组件:服务程序与与客户程序在同一台电脑上,通常是EXE。远程组件:服务程序与与客户程序在不同的电脑上,可以是DLL模块也可是EXE,若是DLL则远程机器会创建一个代理进程。COM库负责组件程序的定位,管理组件对象的创建和与客户之... 阅读全文
posted @ 2014-08-09 23:43 细雨细语 阅读(245) 评论(0) 推荐(0)
摘要:1,编译error的话一般是却#include #include Windows.h内会包含Windows.h,但是因为在stdafx.h中会智能创建WIN32_LEAN_AND_MEAN宏,会屏蔽comdef.h,这样就会导致声明缺失问题。删除WIN32_LEAN_AND_MEAN宏或者手动添加包... 阅读全文
posted @ 2014-08-05 18:33 细雨细语 阅读(508) 评论(0) 推荐(0)
摘要:// Asked to connect to a pin. // A pin is always attached to an owning filter object // so we always delegate our locking to that object.//一个pin总是连接到一个拥有filter的对象,因此Connect函数总是把我们的//锁委托给这个对象。// We first of all retrieve a media type enumerator for the input pin // and see if we accept any of the form 阅读全文
posted @ 2013-12-23 19:08 细雨细语 阅读(1593) 评论(0) 推荐(0)
摘要:1,vc++目录——>包含目录: Visual Studio will search for the include files referred to in your source code files. //include "*.h"c/c++——>常规——>附加包含目录: added the include files in the list of directories searched.库目录和附加库目录类似。link->输入->附加依赖项 :你的LIB文件被真正包含进来了。 把它所在的目录添加到库目录或附加库目录里面 :仅仅包含目录 阅读全文
posted @ 2013-07-12 10:26 细雨细语 阅读(336) 评论(0) 推荐(0)