Export templates from DLL
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
I would like to make a DLL with template functions and classes. How this can be done?:( Thank you DO!
templates can be defined only in h file, so they can not be in dll. this is c++ syntax, no other choices. includeh10
-
I would like to make a DLL with template functions and classes. How this can be done?:( Thank you DO!
Templates are used by the compiler to "copy and paste" the code for datatypes that are used with a particular function. By the time it becomes a dll, there is no more need for the template.