2009年12月23日

Type Library Importer (Tlbimp.exe)

摘要: Type Library Importer (Tlbimp.exe)The Type Library Importer converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. The output ... 阅读全文

posted @ 2009-12-23 14:27 Acor 阅读(819) 评论(0) 推荐(0) 编辑

Assembly Registration Tool (Regasm.exe)

摘要: Assembly Registration Tool (Regasm.exe)The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Fram... 阅读全文

posted @ 2009-12-23 13:53 Acor 阅读(885) 评论(0) 推荐(0) 编辑

2009年12月22日

Type Library to Assembly 转换摘要

摘要: Type Library to Assembly 转换摘要COM_style type library ==> .NET Framework metadata.The .NET Framework provides both tools and an API to perform type library to assembly conversion. Although you have s... 阅读全文

posted @ 2009-12-22 19:00 Acor 阅读(419) 评论(0) 推荐(0) 编辑

VS tools

摘要: 类型库导入程序将 COM 类型库中的类型定义转换为公共语言运行库程序集中的等效定义。Tlbimp.exe 的输出为二进制文件(程序集),该文件中包含在原始类型库中定义的类型的运行库元数据。可以使用诸如 Ildasm.exe 这样的工具检查此文件。-Type library to import COM type library program of the type definition into ... 阅读全文

posted @ 2009-12-22 15:22 Acor 阅读(306) 评论(0) 推荐(0) 编辑

7个顶级心理预言

摘要: (一)成长的寓言:做一棵永远成长的苹果树 一棵苹果树,终于结果了。 第一年,它结了10个苹果,9个被拿走,自己得到1个。对此,苹果树愤愤不平,于是自断经脉,拒绝成长。第二年,它结了5个苹果,4个被拿走,自己得到1个。“哈哈,去年我得到了10%,今年得到20%!翻了一番。”这棵苹果树心理平衡了。 但是,它还可以这样:继续成长。譬如,第二年,它结了100个果子,被拿走90个,自... 阅读全文

posted @ 2009-12-22 13:11 Acor 阅读(136) 评论(0) 推荐(0) 编辑

COM interop

摘要: COM interop  COM interop   一种服务,它使 .NET Framework 对象能够与 COM 对象通信。   Visual Studio .NET 通过引入面向公共语言运行时的受管代码(或托管代码)的概念,使开发人员在创建和运行应用程序的方式上有了重大改变。受管代码(或托管代码)提供了包括自动内存管理、基于属性的编程和公共类型系统等在内的许多优点。不幸的是,正是这些功能强... 阅读全文

posted @ 2009-12-22 11:26 Acor 阅读(231) 评论(0) 推荐(0) 编辑

C++、C#互调用之C++ 调用C# dll

摘要: 1、c# 创建dll建立C#编写的DLL程序AddDll,项目类型为:类库程序代码:using System;using System.Collections.Generic;using System.Text;namespace AddDll{ public class Add { public int iadd(int a, int b) { int c = a + b; return c; ... 阅读全文

posted @ 2009-12-22 11:17 Acor 阅读(847) 评论(0) 推荐(0) 编辑

C++、c#互调用之VC6 调用 VC6 COM

摘要: 1、vc6 编写com使用VC6.0建立COM组件,工程类型:ATL COM AppWizard程序代码:接口:interface IAdd : IDispatch { [id(1), helpstring("method iadd")] HRESULT iadd([in]int a, [in]int b, [out]int * c); [id(2), helpstring("method fad... 阅读全文

posted @ 2009-12-22 11:07 Acor 阅读(841) 评论(0) 推荐(0) 编辑

c++、C#互调用之c# 调用 vc6 COM

摘要: 1、vc6 创建com使用VC6.0建立COM组件,工程类型:ATL COM AppWizard程序代码:接口:interface IAdd : IDispatch { [id(1), helpstring("method iadd")] HRESULT iadd([in]int a, [in]int b, [out]int * c); [id(2), helpstring("method fad... 阅读全文

posted @ 2009-12-22 10:56 Acor 阅读(1071) 评论(0) 推荐(0) 编辑

C++、C# 互调用 之vc6 调用 C# com

摘要: 1、vc6 调用 C# 编写的coma、c#编写com(1)VS2005中使用C#编写COM组件建立C#编写的COM组件,项目类型为类库配置:右键点击解决方案资源管理器中的AddCom,选择“属性”,选择“生成”,选择“为COM Interop注册(_P)”打开AssemblyInfo.cs文件,设置[assembly: Co... 阅读全文

posted @ 2009-12-22 10:10 Acor 阅读(896) 评论(0) 推荐(0) 编辑

导航