如何在vc ++ 6.0/Rational Visual Test中使用C#dll [英] how to use C# dll in vc++6.0/Rational Visual Test
本文介绍了如何在vc ++ 6.0/Rational Visual Test中使用C#dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我有一个用C#编写的dll.我想在使用RVT编写的脚本之一中使用该dll.有谁能告诉我如何在RVT/VC ++ 6.0中包含.net dll?
hi
i have a dll written in C#. i want to use that dll in one of my scripts written using RVT. so can anyone tell me how to include a .net dll in RVT/VC++ 6.0?
推荐答案
使用TlbExp.exe生成 .tlb 文件并在VC ++ 6.0项目中导入生成的 .tlb .
语法:TlbExp AssemblyName [Options]
Options:
/out:文件名 要生成的类型库的文件名
/tlbreference:TypeLibrary 用于解析引用的类型库
/tlbrefpath:路径 用于解析引用的类型库的路径
/asmpath:目录 在此处查找程序集引用
/win32 创建32位类型库
/win64 创建一个64位类型库
/oldnames 当
时,不要忽略COM不可见类型. ; 装饰名称(旧规则)
/nologo 阻止TlbExp显示徽标
/silent 禁止显示所有输出(错误除外)
/verbose 显示更多信息
/names:FileName 在每行中指定
的文件 类型库中名称的大写.
/?或/help 显示此用法消息
Generate .tlb file using TlbExp.exe and import the generated .tlb in your VC++ 6.0 project
Syntax: TlbExp AssemblyName [Options]
Options:
/out:FileName File name of type library to be produced
/tlbreference:TypeLibrary Type library used to resolve references
/tlbrefpath:Path Path used to resolve referenced type libraries
/asmpath:Directory Look for assembly references here
/win32 Create a 32-bit type library
/win64 Create a 64-bit type library
/oldnames Do not ignore COM invisible types when
decorating names (old-rules)
/nologo Prevents TlbExp from displaying logo
/silent Suppresses all output except for errors
/verbose Displays extra information
/names:FileName A file in which each line specifies the
capitalization of a name in the type library.
/? or /help Display this usage message
这篇关于如何在vc ++ 6.0/Rational Visual Test中使用C#dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文