I am having a problem getting a template class to work in an MFC App. The general idea is that I have this templatized Clipboard class, which will register itself and call GlobalAlloc() for the type, and then the user calls a Get() function to get a pointer to the type.
Anyway, I've written templates before, and it was never really a problem. Now it's really turning into a pain though. The class compiles fine, but every single constructor/destructor/member function turns up as an unresolved external for the instantiated type.
The .cpp file is a part of the project, and is being compiled in.
The only thing I can think of is that I need some sort of compiler switch turned on for templates, which is turned off in an MFC app by default. Does anyone know if this may be the case?
Or if not, any ideas on what the hell is going on? I'm going crazy..there really isn't anything else I can think to do to get this code to work.
Thanks in advance for any info.