This topic is now archived and is closed to further replies.


DLLs and templates...

Recommended Posts

I''m sure there is a simple solution to this...but I''ve banged my head too much already. I have a class which is being exported from a DLL with a template base class. The template base class is for garbage collection. I have something along the lines of (in the declaration)... class __declspec(dllexport)MyClass : GarbageCollect { blah... blah... }; I get the following warning while I compile. warning C4275: non dll-interface class ''GarbageCollect'' used as base for dll-interface class ''DDSINFOARRAY'' So my question is, how do I set up a dll-interface for a template based class. Adding the __declspec(dllexport) into the template file didn''t get rid of the warning. Any help is much appreciated.

Share this post

Link to post
Share on other sites