Click here to Skip to main content
15,900,598 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDTPicker format Pin
Anders Molin11-Sep-01 2:30
professionalAnders Molin11-Sep-01 2:30 
GeneralRe: CDTPicker format Pin
11-Sep-01 15:30
suss11-Sep-01 15:30 
QuestionHow can I add a method to all controls? Pin
tfElep10-Sep-01 23:24
tfElep10-Sep-01 23:24 
AnswerRe: How can I add a method to all controls? Pin
Tomasz Sowinski10-Sep-01 23:42
Tomasz Sowinski10-Sep-01 23:42 
QuestionHow to recompile MFC source Pin
tfElep10-Sep-01 21:37
tfElep10-Sep-01 21:37 
AnswerRe: How to recompile MFC source Pin
Christian Graus10-Sep-01 21:44
protectorChristian Graus10-Sep-01 21:44 
GeneralUnicode text through SetWindowText functin Pin
Ivan A Eryshov10-Sep-01 21:36
Ivan A Eryshov10-Sep-01 21:36 
GeneralLinking error when using template class from MFC Extension DLL Pin
D.D. de Kerf10-Sep-01 21:33
D.D. de Kerf10-Sep-01 21:33 
Hi,

I'm exporting a template class from my MFC extension DLL, but as soon as I start using the template class outside the DLL, I get linker errors.

The template class in the DLL looks like this (myClass_Object is also defined inside the DLL):


template <class afx_ext_class="" caggregate="">
class AFX_EXT_CLASS myClass_Aggregate : public myClass_Object
{
public:
myClass_Aggregate()
{
....
}
...

}


I use the aggregate with a class from inside the DLL as the template class and the linker error looks like this (myClass_TreeFileNode is a subclass of myClass_Object):

DumpDB.obj : error LNK2001: unresolved external symbol "public: int __thiscall myClass_Aggregate<class myclass_treefilenode="">::IsEmpty(void)const " (?IsEmpty@?$myClass_Aggregate@VmyClass_TreeFileNode@@@@QBEHXZ)


Am I not exporting the class correctly??

Dave

Structured programming vs. chaotic mind boggling
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Ben M. Stokland10-Sep-01 21:44
Ben M. Stokland10-Sep-01 21:44 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf10-Sep-01 21:48
D.D. de Kerf10-Sep-01 21:48 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Ben M. Stokland10-Sep-01 22:24
Ben M. Stokland10-Sep-01 22:24 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Tomasz Sowinski10-Sep-01 23:54
Tomasz Sowinski10-Sep-01 23:54 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf11-Sep-01 0:06
D.D. de Kerf11-Sep-01 0:06 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Tomasz Sowinski11-Sep-01 0:12
Tomasz Sowinski11-Sep-01 0:12 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf11-Sep-01 0:16
D.D. de Kerf11-Sep-01 0:16 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Tomasz Sowinski11-Sep-01 0:24
Tomasz Sowinski11-Sep-01 0:24 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf11-Sep-01 22:54
D.D. de Kerf11-Sep-01 22:54 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
Tomasz Sowinski12-Sep-01 0:36
Tomasz Sowinski12-Sep-01 0:36 
GeneralRe: Linking error when using template class from MFC Extension DLL Pin
D.D. de Kerf12-Sep-01 21:48
D.D. de Kerf12-Sep-01 21:48 
GeneralChanging a CEdit font!! Pin
GX10-Sep-01 20:46
GX10-Sep-01 20:46 
GeneralRe: Changing a CEdit font!! Pin
Michael Dunn10-Sep-01 21:39
sitebuilderMichael Dunn10-Sep-01 21:39 
GeneralRe: Changing a CEdit font!! Pin
GX11-Sep-01 1:47
GX11-Sep-01 1:47 
QuestionWhere do I find a DVD Decoder??? Pin
10-Sep-01 19:54
suss10-Sep-01 19:54 
GeneralMemory Management Pin
Pritesh Sidhdhapura10-Sep-01 18:58
Pritesh Sidhdhapura10-Sep-01 18:58 
GeneralRe: Memory Management Pin
Christian Graus10-Sep-01 19:17
protectorChristian Graus10-Sep-01 19:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.