I need code to export Class Template from DLL and also client application using that Class Template ,using Vc++ MFCDLL or VC++ Win 32 dynamiclinklibr ary for the creation of Dll that includes a Class Template
Templates
Collapse
X
-
If I understand you right, you cannot do this.Originally posted by usyra42I need code to export Class Template from DLL and also client application using that Class Template ,using Vc++ MFCDLL or VC++ Win 32 dynamiclinklibr ary for the creation of Dll that includes a Class Template
A template is a C++ construct that is compiled only when required by the rest of the programme. If it is a generic template of type T, it will not generate code for when T is an int, char, char *, long, user defined class ... the list goes on and on. You can only specify concrete classes and functions for export.
Adrian -
Comment
-
Yes, but then it is not really a template at that point. It is a concrete instantiation.Originally posted by dcollinsYou can however, explicitly instantiate a class template or function, and export that from a static or dynamic library.
AdrianComment
-
No, it is not possible. Read the other messages in this thread.Originally posted by usyra42can u please help in this i need some idea how to export templates ..
Is it possible to export the class templates...
i need to complete the project ..
give some idea ...
AdrianComment
Comment