Second: C# application calls dll written in unmanaged C++
There are three projects here
1. FunctionCPlusPlus, this project contains the main logic of this demo, the classes are written with unmanaged C++, and exported to a dll. If I doesn't rember wrong, this is a win32 project, and the configuration type is static library.
2. CPP2CSAdapter, this project contains managed C++ code. If my memory doesn't cheat me, this project is a class library project.
3. Main, this project is the main project, which is written in C#.
the solution and projects are also created, or converted to be compatible with Visual Studio 2008, this statement also applies to the demos that will come after this, and won't be included anymore.
There are comments in the source files that can help you, and pay attention to project settings.
I'm sorry for not having classified an instruction file.
/Files/hpsoar/Demo2.rar
1. FunctionCPlusPlus, this project contains the main logic of this demo, the classes are written with unmanaged C++, and exported to a dll. If I doesn't rember wrong, this is a win32 project, and the configuration type is static library.
2. CPP2CSAdapter, this project contains managed C++ code. If my memory doesn't cheat me, this project is a class library project.
3. Main, this project is the main project, which is written in C#.
the solution and projects are also created, or converted to be compatible with Visual Studio 2008, this statement also applies to the demos that will come after this, and won't be included anymore.
There are comments in the source files that can help you, and pay attention to project settings.
I'm sorry for not having classified an instruction file.
/Files/hpsoar/Demo2.rar

浙公网安备 33010602011771号