12 2009 档案

Type Library Exporter (Tlbexp.exe)
摘要:Type Library Exporter (Tlbexp.exe)The Type Library Exporter generates a type library that describes the types defined in a common language runtime assembly.tlbexp assemblyName [/out:file] [/nologo] [/... 阅读全文

posted @ 2009-12-28 22:41 Acor 阅读(861) 评论(0) 推荐(1)

To consume a managed type from COM 之四 Deploying an Application for COM Access
摘要:Deploying an Application for COM Access .NETFrameworkDeveloper'sGuideDeploying an Application for COM AccessAssemblies can be private or shared. Private assemblies are available only to clients in the... 阅读全文

posted @ 2009-12-28 12:50 Acor 阅读(162) 评论(0) 推荐(0)

To consume a managed type from COM 之三 Calling a .NET Object
摘要:Calling a .NET Object .NETFrameworkDeveloper'sGuideCalling a .NET ObjectA COM client can create an instance of a public class in an assembly and call the public members of the class. The common langua... 阅读全文

posted @ 2009-12-28 12:34 Acor 阅读(162) 评论(0) 推荐(0)

To consume a managed type from COM 之二 Referencing .NET Types from COM
摘要:Referencing .NET Types from COM .NETFrameworkDeveloper'sGuideReferencing .NET Types from COMFrom the point of view of client and server code, the differences between COM and the .NET Framework are lar... 阅读全文

posted @ 2009-12-28 12:26 Acor 阅读(210) 评论(0) 推荐(0)

To consume a managed type from COM 之一 Register assemblies with COM
摘要:Registering Assemblies with COM .NETFrameworkDeveloper'sGuideRegistering Assemblies with COMYou can run a command-line tool called the Assembly Registration Tool (Regasm.exe) to register or unregister... 阅读全文

posted @ 2009-12-28 12:18 Acor 阅读(233) 评论(0) 推荐(0)

Exposing .NET Framework Components to COM 综述
摘要:Exposing .NET Framework Components to COMWriting a .NET type and consuming that type from unmanaged code are distinct activities for developers. This section describes several tips for writing managed... 阅读全文

posted @ 2009-12-26 20:24 Acor 阅读(226) 评论(0) 推荐(0)

Compiling to MSIL
摘要:Compiling to MSIL .NETFrameworkDeveloper'sGuideCompiling to MSILWhen compiling to managed code, the compiler translates your source code into Microsoft intermediate language (MSIL), which is a CPU-ind... 阅读全文

posted @ 2009-12-26 19:19 Acor 阅读(261) 评论(0) 推荐(0)

MSIL Disassembler (Ildasm.exe)
摘要:MSIL Disassembler (Ildasm.exe)The MSIL Disassembler is a companion tool to the MSIL Assembler (Ilasm.exe). Ildasm.exe takes a portable executable (PE) file that contains Microsoft intermediate languag... 阅读全文

posted @ 2009-12-26 18:07 Acor 阅读(1127) 评论(0) 推荐(0)

Assembly to Type Library 之 Exported Member Conversion(Describes how export process converts methods, properties,event)
摘要:Exported Member ConversionThis topic describes how the export process converts the following members: MethodsPropertiesEvents MethodsCOM clients expect to call methods, passing familiar COM data types... 阅读全文

posted @ 2009-12-26 17:20 Acor 阅读(387) 评论(0) 推荐(0)

Introducing the Class Interface
摘要:Introducing the Class InterfaceThe class interface, which is not explicitly defined in managed code, is an interface that exposes all public methods, properties, fields, and events that are explicitly... 阅读全文

posted @ 2009-12-26 15:59 Acor 阅读(349) 评论(0) 推荐(0)

Assembly to Type Library 之 Exported Type Conversion (Describes how the export process converts classes, interfaces, val)
摘要:Exported Type ConversionThis topic describes how the export process converts the following types: ClassesInterfacesValue typesEnumerations In general, exported types retain the same name they had with... 阅读全文

posted @ 2009-12-26 15:34 Acor 阅读(376) 评论(0) 推荐(0)

Assembly and Type Library Identities
摘要:Exported Assembly ConversionAny tool or API that exports an assembly to a type library must convert the outermost level of a managed assembly first. The process converts each individual assembly into ... 阅读全文

posted @ 2009-12-26 13:53 Acor 阅读(345) 评论(0) 推荐(0)

Assembly to Type Library
摘要:Assembly to Type Library Conversion SummaryAssemblies provide the common language runtime with the information it needs to be aware of type implementations. Type libraries do the same for COM types. C... 阅读全文

posted @ 2009-12-26 12:08 Acor 阅读(168) 评论(0) 推荐(0)

小鱼点评
摘要:李彦宏:帅,创新;王石:勇于挑战;他可以放下万科,把自己的生活也打理得很好,平衡能力。史玉柱:永不言败,不买账;曾经欠了一屁股债,被追得到处跑。 阅读全文

posted @ 2009-12-25 23:30 Acor 阅读(170) 评论(0) 推荐(0)

Exposing COM Components to the .NET Framework之四Deploy an interop application
摘要:Deploying an Interop ApplicationAn interop application typically includes a .NET client assembly, one or more interop assemblies representing distinct COM type libraries, and one or more registered CO... 阅读全文

posted @ 2009-12-23 22:21 Acor 阅读(187) 评论(0) 推荐(0)

Exposing COM Components to the .NET Framework之三Compile an interop project
摘要:Compiling an Interop ProjectCOM interop projects that reference one or more assemblies containing imported COM types are compiled like any other managed project. You can reference interop assemblies i... 阅读全文

posted @ 2009-12-23 22:08 Acor 阅读(161) 评论(0) 推荐(0)

Exposing COM Components to the .NET Framework之二Create COM types in managed Code.
摘要:Using COM Types in Managed CodeCOM types defined in an assembly are like any other managed type. Managed clients can create a new instance of a COM type in the usual way and obtain class information t... 阅读全文

posted @ 2009-12-23 22:03 Acor 阅读(138) 评论(0) 推荐(0)

Exposing COM Components to the .NET Framework之一Import a type library as an assembly.
摘要:Importing a Type Library as an AssemblyCOM type definitions usually reside in a type library. In contrast, CLS-compliant compilers produce type metadata in an assembly. The two sources of type informa... 阅读全文

posted @ 2009-12-23 21:56 Acor 阅读(312) 评论(0) 推荐(0)

Exposing COM Components to the .NET Framework
摘要:To expose COM components to the .NET Framework Import a type library as an assembly. The common language runtime requires metadata for all types, including COM types. There are several ways to obtain ... 阅读全文

posted @ 2009-12-23 21:52 Acor 阅读(157) 评论(0) 推荐(0)

Global Assembly Cache Tool (Gacutil.exe)
摘要:Global Assembly Cache Tool (Gacutil.exe)The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache and download cache.ExamplesThe following command inst... 阅读全文

posted @ 2009-12-23 18:43 Acor 阅读(331) 评论(0) 推荐(0)

Global Assembly Cache Tool (Gacutil.exe)
摘要:Global Assembly Cache Tool (Gacutil.exe)The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache and download cache.ExamplesThe following command inst... 阅读全文

posted @ 2009-12-23 18:43 Acor 阅读(533) 评论(0) 推荐(0)

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 阅读(859) 评论(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 阅读(908) 评论(0) 推荐(0)

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 阅读(433) 评论(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 阅读(324) 评论(0) 推荐(0)

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

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

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

posted @ 2009-12-22 11:26 Acor 阅读(240) 评论(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 阅读(860) 评论(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 阅读(1032) 评论(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 阅读(1193) 评论(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 阅读(932) 评论(0) 推荐(0)

Calling Win32 DLLs in C# with P/Invoke(节录)
摘要:最近,项目中经常需要Calling Win32 DLLs in C# 。1、use of P/Invoke for calling Windows API functions2、COM Interop 这里讨论1.A、Enter P/Invokesample:the Win32 MessageBeep function whose unmanaged declaration is shown in... 阅读全文

posted @ 2009-12-21 17:24 Acor 阅读(594) 评论(0) 推荐(0)

vc 获得文件相对路径
摘要:API函数PathRelativePathTo Requirements Version 4.71 and later of Shlwapi.dll Header: Declared in shlwapi.h. Import Library: shlwapi.lib.example:#include <windows.h>#include <iostream.... 阅读全文

posted @ 2009-12-14 19:34 Acor 阅读(892) 评论(0) 推荐(0)

导航