06 2011 档案

摘要:最近开始使用VS2010,在引用COM组件的时候,出现了无法嵌入互操作类型“……”,请改用适用的接口的错误提示。查阅资料,找到解决方案,记录如下:选中项目中引入的dll,鼠标右键,选择属性,把“嵌入互操作类型”设置为False。 阅读全文
posted @ 2011-06-28 15:53 遥望星空 阅读(355) 评论(0) 推荐(0) 编辑
摘要:To share data, multiple processes can use memory-mapped files that the system paging file stores.First ProcessThe first process creates the file mapping object by calling the CreateFileMapping function with INVALID_HANDLE_VALUE and a name for the object. By using the PAGE_READWRITE flag, the process 阅读全文
posted @ 2011-06-21 17:14 遥望星空 阅读(436) 评论(1) 推荐(0) 编辑
摘要:一下是一个C#操作内存的一个类,只要将下面的类添加到相应的项目中,该项目就可以对内存进行直接操作!using System.Runtime.InteropServices; //添加如下命名空间 需要是用 DllImportpublic class ShareMemLib {[DllImport("user32.dll", CharSet = CharSet.Auto)]public static extern IntPtr SendMessage(IntPtr hWnd, int Msg, int wParam, IntPtr lParam);[DllImport(&qu 阅读全文
posted @ 2011-06-21 16:53 遥望星空 阅读(5445) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示