上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: 阅读全文
posted @ 2016-08-12 14:13 今夜太冷 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Set it toTRUEto construct aFile Opendialog box. Set it toFALSEto construct aFile Save Asdialog box. void CCompFileDlg::OnDirbrowser() { // TODO: Add your control notification handler cod... 阅读全文
posted @ 2016-08-12 13:34 今夜太冷 阅读(2232) 评论(0) 推荐(0) 编辑
摘要: 第7章中有如下的描述:-----------------------------------为了在程序中使用"Text.Object"文本对象,我们利用ClassWizard引入文本对象控制类,ClassWizard会为我们创建一个COleDispatchDriver的派生类ITextObject,在后面代码中我们将会看到ITextObject类的用法。--------------------... 阅读全文
posted @ 2016-08-12 11:37 今夜太冷 阅读(379) 评论(0) 推荐(0) 编辑
摘要: CString转换成char* CString strSource;//宣告CStringchar* charSource; //宣告char*法1:charSource = (char*)strSource.GetBuffer(0);法2:charSource = (char*)strSource.GetBuffer(strSource.GetLength());法3:charSource = ... 阅读全文
posted @ 2016-08-10 15:47 今夜太冷 阅读(39108) 评论(0) 推荐(0) 编辑
摘要: COM的永久接口 阅读全文
posted @ 2016-08-09 17:26 今夜太冷 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 复合文档实现结构化存储的一些限制 阅读全文
posted @ 2016-08-09 16:38 今夜太冷 阅读(292) 评论(0) 推荐(0) 编辑
摘要: COM结构化存储中存储对象或者流对象的命名规则 阅读全文
posted @ 2016-08-09 14:49 今夜太冷 阅读(281) 评论(0) 推荐(0) 编辑
摘要: VS2008添加自动化类,报错: 【解决方法1】 This can be fixed by installing SP1. Please see https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=100182 【解决方法2】 I already have s... 阅读全文
posted @ 2016-08-05 18:03 今夜太冷 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 按照第五章写的基于MFCdll的COM,COM对象不是基于Automation的,自己映射了接口,也把潘爱民的源代码看了,感觉和他的代码一样呀,为什么在客户端用CoCreateInstance就出现了E_OUTOFMEMORY呢? 【分析】 打开OLEVIEW,在All Objects类别下找到这个组件。 点击或者右键"Create Instance"都报错,跟程序中调用的错误是... 阅读全文
posted @ 2016-08-03 16:08 今夜太冷 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: 关机状态下同时按减音量按钮和开机按钮,进入一个菜单,选择recovery(减音量键是移动,加音量键是确定),当出现一个倒地的机器人的时候,稍待片刻按开机键会出现双清以及刷机菜单。wipe data/factory reset和 wipe cache partition 是双清,apply update from sdcard是卡刷(本人的机子卡刷包必须放置在SD卡里才行,这里无法识别手机内存,... 阅读全文
posted @ 2016-08-02 15:06 今夜太冷 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: BSTR BSTR bstrXML = NULL; //用完以后,或者 catch段中 if(bstrXML) ::SysFreeString(result);VARIANT VARIANT varFileName; //用完以后,或者 catch段中 VariantClear(&varFileName);支持Release的COM接口,例如: IXMLDOMDocument *pXMLDom... 阅读全文
posted @ 2016-08-02 14:28 今夜太冷 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-08-01 14:29 今夜太冷 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 【解决方法】 如果是Android手机,那需要下载这个:http://community.kde.org/Necessitas 阅读全文
posted @ 2016-07-31 21:44 今夜太冷 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: I recently installed Qt5 and works like a charm for API 17 and armeabi-v7a.But I added second AVD with other parameters (of course, I installed packages in AVD settings). Now, I can't compile first ... 阅读全文
posted @ 2016-07-31 15:24 今夜太冷 阅读(1361) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-29 16:58 今夜太冷 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-29 15:03 今夜太冷 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-29 13:52 今夜太冷 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 当编译c和c++混合的项目时,会出现如下类似的错误 fatal error C1853: '' is not a precompiled header file 解决方法: 设置Not using precompiled header. 阅读全文
posted @ 2016-07-27 14:21 今夜太冷 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 进程内组件写的log,如果不指定路径直接提供文件名,log文件的位置在dll所在的目录中。 进程外组件写的log,如果不指定路径直接提供文件名,log文件的位置不在exe所在的目录中,而是在系统目录。 阅读全文
posted @ 2016-07-27 10:47 今夜太冷 阅读(407) 评论(0) 推荐(0) 编辑
摘要: CoCreateInstance 创建组件的最简单的方法是使用CoCreateInstance函数。 在COM库中包含一个用于创建组件的名为CoCreateInstance的函数。此函数需要一个CLSID参数,在此基础上创建相应组件的一个实例,并返回此组件的某个接口。 CoCreateInstance 的声明 HRESULT _stdcall CoCreate... 阅读全文
posted @ 2016-07-26 16:33 今夜太冷 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 添加了注册表项,死活找不到怎么回事?搜索也搜不到。 解决方法: 重新打开regedit 阅读全文
posted @ 2016-07-19 14:10 今夜太冷 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: 写Unmanaged Code在.NET时代成为一种很悲惨的事,当你需要处理XML文件时,这种感觉会变得尤其强烈。FCL中的System.XML多简单啊,连Steve Ballmer都知道怎么用。事情不会总是那么理想的,假如你要在C/C++程序里处理XML怎么办呢?选择一:市面上的XML lib还是有几个的,最有名的当然是libXML。我一年前用过,很不错,我还特意写了一份简明教程,后来... 阅读全文
posted @ 2016-07-14 21:49 今夜太冷 阅读(3758) 评论(0) 推荐(1) 编辑
摘要: C++ - RegCreateKeyEx success but without result Could anybody tell me what's wrong is with this code? There is no errors. Everything returns ERROR_SUCCESS but in register can't see any changes. void ... 阅读全文
posted @ 2016-07-13 16:38 今夜太冷 阅读(3996) 评论(0) 推荐(0) 编辑
摘要: I'm trying to add DLLRegisterServer and DLLUnregisterServer entry points to an existing DLL that is exporting other functions. I have the olectl.h header included and here is the code I'm using to exp... 阅读全文
posted @ 2016-07-13 11:56 今夜太冷 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 在c++中,vector是一个十分有用的容器,下面对这个容器做一下总结。 1 基本操作 (1)头文件#include. (2)创建vector对象,vector vec; (3)尾部插入数字:vec.push_back(a); (4)使用下标访问元素,cout::iterator it; for(it=vec.begin();it!=vec.end();it++) cout #... 阅读全文
posted @ 2016-07-12 21:38 今夜太冷 阅读(227) 评论(0) 推荐(0) 编辑
摘要: #include 然后调用_com_util::ConvertBSTRToString提示如下错误: error LNK2019: unresolved external symbol "char * __stdcall _com_util::ConvertBSTRToString 。。。。 怎么回事那? 【解决方法】 #pragma comment(lib, "comsuppw.l... 阅读全文
posted @ 2016-07-12 17:17 今夜太冷 阅读(2988) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-11 15:54 今夜太冷 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 用endl,std::endl, "\n"都不好用,不输出换行,怎么回事? 【解决方法】 If you're writing a text file, you shouldn't be using the binary flag.fout.open ("bodyfat.txt", ios::out | ios::app | ios::binary);Remove the ios::binary. ... 阅读全文
posted @ 2016-07-11 14:51 今夜太冷 阅读(471) 评论(0) 推荐(0) 编辑
摘要: string、wstring、cstring、 char、 tchar、int、dword转换方法(转) 最近编程一直头痛这集中类型的转化,明知都可以转却总是记不住,不断的上网查来查去,在这里小结一下。以备以后方便使用,当然有些方法可能不是最新的,或者最简单的,但是对于自己已经了解的使用起来应该方便的多: 1》string转wstring wstring s2ws(const st... 阅读全文
posted @ 2016-07-11 14:06 今夜太冷 阅读(3669) 评论(0) 推荐(1) 编辑
摘要: 类厂 组件结构示例 DllGetClassObject COM库与类厂的交互 阅读全文
posted @ 2016-07-07 15:20 今夜太冷 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页