How to call VB.NET DLL from C++ (Call the functions also - not DLL file only)

前端 未结 4 393
长情又很酷
长情又很酷 2021-01-07 05:38

I want to ask question about how to call VB.NET DLL from C++ program

I have tried many times to call VB.NET DLL file from C++ and it is working fine but the problem

4条回答
  •  [愿得一人]
    2021-01-07 06:12

    You can't directly access .NET code from native C++, you will need C++/CLI for that.

    If your program needs to be native C++, there is the possibility of writing a mixed-mode wrapper DLL which provides a native C++ interface for the main program, and uses C++/CLI in the implementation to forward calls to the .NET DLL.

提交回复
热议问题