简体   繁体   English

VB.NET中的嵌入式C ++ DLL

[英]Embedded C++ DLL in VB.NET

I didn't find answer to this from msdn or from google so I decided to ask it here. 我没有从msdn或google找到答案,所以我决定在这里问。

Is it possible to write a DLL in C++, then use it embedded in vb.net? 是否可以用C ++编写DLL,然后将其嵌入vb.net中使用? From resource file, etc? 从资源文件等? I want the DLL to stay inside the .net -application. 我希望DLL保留在.net -application内部。

This way I could use C++ code directly from vb.net app, without having it in HDD. 这样,我可以直接从vb.net应用程序使用C ++代码,而无需将其放在HDD中。

Possible or not? 有可能吗?

Make a C++ static library , and then reference it in a C++/CLI dynamic library project. 创建一个C ++静态库 ,然后在C ++ / CLI动态库项目中引用它。
The static library will be "embedded" into the C++/CLI .Net library. 静态库将“嵌入”到C ++ / CLI .Net库中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM