Exporting classes from a DLL
This is probably something stupid, but I dont know.
I am trying to export a class from a DLL. Inside of the class is a custom templated queue class. When I compile, I get a warning saying:
Code:
c:\divinity\classes\cobject.h(94) : warning C4251: 'MsgQueue' : class 'Queue<struct DMSG>' needs to have dll-interface to be used by clients of class 'CObject'
I have tried adding __declspec(dllexport) to my Queue class, etc. Also, the application using it works just fine. I just want to get rid of the warning. Any ideas?
Z.