<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[wolvesunder的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/wolvesunder</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; wolvesunder]]></copyright><item><title><![CDATA[InvokeRequired和Invoke]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/72383664</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/72383664</guid><author>wolvesunder</author><pubDate>Wed, 17 May 2017 14:38:58 +0800</pubDate><description><![CDATA[C#中禁止跨线程直接访问控件，InvokeRequired是为了解决这个问题而产生的，当一个控件的InvokeRequired属性值为真时，说明有一个创建它以外的线程想访问它。此时它将会在内部调用new MethodInvoker(LoadGlobalImage)来完成下面的步骤，这个做法保证了控件的安全，你可以这样理解，有人想找你借钱，他可以直接在你的钱包中拿，这样太不安全，因此必须让别人先要告]]></description><category></category></item><item><title><![CDATA[OPC client 编写预备知识]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/72364590</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/72364590</guid><author>wolvesunder</author><pubDate>Wed, 17 May 2017 11:20:25 +0800</pubDate><description><![CDATA[了解OPC 客户端的工作原理，要想写客户端程序，必须知道OPC对象， OPC逻辑对象模型包括３类对象：OPC server对象、OPC group对象、OPC item对象，每类对象都包括一系列接口。
    
OPC Server对象
    主要功能为：1、创建和管理OPC Group对象；
                2、管理服务器内部的状态信息；
    
OPC Grou]]></description><category></category></item><item><title><![CDATA[ATL  属性为BSTR 时数据处理]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/40783743</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/40783743</guid><author>wolvesunder</author><pubDate>Tue, 04 Nov 2014 13:31:50 +0800</pubDate><description><![CDATA[参考
http://bbs.youkuaiyun.com/topics/110322]]></description><category></category></item><item><title><![CDATA[error C2065: '_bstr_t' : undeclared identifier]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/40507859</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/40507859</guid><author>wolvesunder</author><pubDate>Mon, 27 Oct 2014 15:10:30 +0800</pubDate><description><![CDATA[VC++ complie error:

    '_bstr_t' : undeclared identifier

solution:

to write ' #include    ' into stdafx.h]]></description><category></category></item><item><title><![CDATA[error LNK2005: _DllMain@12 already defined in xxx.OBJ]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/40460241</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/40460241</guid><author>wolvesunder</author><pubDate>Sat, 25 Oct 2014 23:21:49 +0800</pubDate><description><![CDATA[用Visual C++编写DLL,如果在new project时选了MFC DLL,而后又想写成Regular DLL,即拥有自己的DllMain()入口函数,则在build时会遇到类似如下的link错误:

 error LNK2005: _DllMain@12 already defined in xxx.OBJ




只需要在工程设置里面，把

WIN32,NDEBUG,]]></description><category></category></item><item><title><![CDATA[error LNK2001: unresolved external symbol "void __stdcall _com_issue_error (long)"]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/40460205</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/40460205</guid><author>wolvesunder</author><pubDate>Sat, 25 Oct 2014 23:19:40 +0800</pubDate><description><![CDATA[程序编译出现错误：error LNK2001: unresolved external symbol "void __stdcall _com_issue_error (long)"
一般来说是缺少一个库：
在project->settings->Link页中的Object/library modules加入comsupp.lib

摘自：http://blog.youkuaiyun.com/livi]]></description><category></category></item><item><title><![CDATA[ATL 控件 网页上的 安全提示]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/40392227</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/40392227</guid><author>wolvesunder</author><pubDate>Thu, 23 Oct 2014 10:08:49 +0800</pubDate><description><![CDATA[对于ATL来说，要消除该安全提示非常简单，
就是需要将标记控件为安全的，也就是要实现IObjectSafety这个类，
具体的方法如下：
 
1，
找到你dll控件的接口实现类的.H文件，
例如控件名称为“MyATL”，则头文件名称为“”继承类列表的末尾，并在上一行中添加一个逗号；

  public   IObjectSafetyImpl  

2. 将下行添加到   .h ]]></description><category></category></item><item><title><![CDATA[ATL 添加事件 error C2065: 'IID__IXXXEvents' : undeclared identifier]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/40378393</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/40378393</guid><author>wolvesunder</author><pubDate>Wed, 22 Oct 2014 16:33:35 +0800</pubDate><description><![CDATA[error C2065: 'IID__IXXXEvents' : undeclared identifier]]></description><category></category></item><item><title><![CDATA[VC6 如何删除属性或方法 -ATL]]></title><link>https://blog.youkuaiyun.com/wolvesunder/article/details/40341439</link><guid>https://blog.youkuaiyun.com/wolvesunder/article/details/40341439</guid><author>wolvesunder</author><pubDate>Tue, 21 Oct 2014 11:05:48 +0800</pubDate><description><![CDATA[最近开发ATL控件 新增一个属性后，发现c]]></description><category></category></item></channel></rss>