开发者

intellisense cannot open source file " .tlb" in C++

开发者 https://www.devze.com 2022-12-20 11:43 出处:网络
Iam tring to deploy my C# dll in C++, by converting it .tlb. But, while im importing it into C++ program, using the statement

Iam tring to deploy my C# dll in C++, by converting it .tlb. But, while im importing it into C++ program, using the statement

#import "MyProject.tlb" named_guids raw_interfaces_only 

Iam geting the error

intellisense cannot open source file " c:/.../debug/MyProject.tlh"  
bad descriptor for file.

Also getting the warning:

#import  skipped when looking f开发者_如何学运维or precompiled header use

Can anyone help me in this?


You may need to do a wrapper to access the C# library. For that you must create a header file which will contain the interface header for the library:

#include "YC#library_interface.hpp"

And you also need to implement the wrapper to do it (SWIG ???)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号