如何检查TLB文件中的原始COM定义
How to inspect raw COM definitions in a TLB file?
一个现有的非托管c++项目使用一个在c#中声明和实现的COM组件,我的头看起来有点像这样:
#import "MyComponents.tlb" no_namespace named_guids
IComponentXYZ *pComponent;
有时当我右键单击。h文件中的IComponentXYZ
并"Go to declaration"时,会显示一个MyComponent.tlh
文件,其中显示了COM包装器定义。但其他时候,它说没有定义存在。
我可以在Visual Studio中手动打开此文件吗?我认为它是自动生成的。虽然Object Browser窗口允许我检查TLB内容,但它不显示原始的COM方法声明。
二十年前我也使用过OLEView。查看TLB内部的其他一些好工具是:
COMView
- http://comview.allapp.biz/
- https://www.softpedia.com/get/System/System-Info/COMView.shtml
非常有用…
相关文章:
- 为什么我的C#代码在调用回C++COM直到Task时会暂停.等待/线程.加入
- 将浮动的heightmap数组导出为16位原始值
- 给定一个向量,如何找到该向量的所有子集和的原始索引
- 有没有办法从非C/C++文件中读取C++原始字符串文字的内容
- 是否可以将llvm::FunctionType转换为C/C++原始函数指针
- 两个 COM 组件中 ENUM 的重复条目
- COM 接口 c# 封送数组数组
- 如何将原始字节附加到 std::vector?
- 从堆栈分配的原始指针构造智能指针
- 如何重写全局方法名称以在调用原始方法之前将我的代码推到前面
- COM :是否可以查看是否存在对我的某个 COM 对象的进程外引用?我可以释放它吗?
- 将unique_ptr分配给原始指针
- 是否可以从 OpenGL 缓冲区获取原始大小的像素?
- 使用 OpenSSL 从内存中读取原始 SSL/TLS 证书
- 如何将唯一指针的 std::vector 转换为原始指针的 std::span?
- 从原始字节解码协议缓冲区(以 C++为单位)
- 如何读取 C++ SAFEARRAY**,该 SAFEARRAY** 是 COM 互操作的结果,其中 C# 返回值为
- C ++如何在原始抽象类中创建一个函数,该函数接受派生类的输入
- C++:尝试使用等效的 STL 算法消除原始循环
- 如何检查TLB文件中的原始COM定义