What if the instantiated template classes are not exported?

No worry, we will export them and then generate C# wrapper classes for them. The only requirement is that the instantiated template class can be exported a C++ DLL.

If you can not even instantiate the template class even from a C++ project, then the chance of exporting the instantiate template class is none. Normally, if you define the template class and the type all in the header files, the chance of exporting the instantiated template class will be higher.

You must make sure you can create that kind of template class in a separate C++ EXE or DLL project if you are concerned about the possibility of creating wrapper class for any instantiated template classes which are not exported.

← Faqs
Translate »