Click here to Skip to main content
16,011,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to open browser Pin
Rage18-Dec-02 21:46
professionalRage18-Dec-02 21:46 
GeneralRe: How to open browser Pin
prateetibhargava18-Dec-02 23:54
prateetibhargava18-Dec-02 23:54 
QuestionHow to Draw on a ActiveX Control ? Pin
chepuri_uk18-Dec-02 19:12
chepuri_uk18-Dec-02 19:12 
AnswerRe: How to Draw on a ActiveX Control ? Pin
Itanium19-Dec-02 0:28
Itanium19-Dec-02 0:28 
GeneralExporting template class Pin
Nilesh K.18-Dec-02 18:01
Nilesh K.18-Dec-02 18:01 
GeneralRe: Exporting template class Pin
Christian Graus18-Dec-02 18:06
protectorChristian Graus18-Dec-02 18:06 
GeneralRe: Exporting template class Pin
Paul M Watt18-Dec-02 18:27
mentorPaul M Watt18-Dec-02 18:27 
GeneralRe: Exporting template class Pin
Jeff J18-Dec-02 18:51
Jeff J18-Dec-02 18:51 
I once did what you are trying to do (for export to a non-C++ project), but as Paul mentioned, the benefits of templates are lost. One way is to create a non-templatised wrapper class, and wrap every single method so that it calls the template version. Make sure you inline everything to avoid extra call overhead. If you forget to wrap any methods, the compiler will not generate them at all. Of course, you will have to declare one specific type to be used with the exported class, hence the class will no longer be generic. You can create separate wrapper classes for different types, though your DLL will get rather large.

Cheers
QuestionHow to get dimensions of client area without toolbars? Pin
Mr.Freeze18-Dec-02 17:52
Mr.Freeze18-Dec-02 17:52 
AnswerRe: How to get dimensions of client area without toolbars? Pin
Christian Graus18-Dec-02 18:07
protectorChristian Graus18-Dec-02 18:07 
GeneralRe: How to get dimensions of client area without toolbars? Pin
Mr.Freeze18-Dec-02 19:15
Mr.Freeze18-Dec-02 19:15 
GeneralRe: How to get dimensions of client area without toolbars? Pin
Christian Graus18-Dec-02 19:22
protectorChristian Graus18-Dec-02 19:22 
GeneralRe: How to get dimensions of client area without toolbars? Pin
Mr.Freeze19-Dec-02 15:04
Mr.Freeze19-Dec-02 15:04 
AnswerRe: How to get dimensions of client area without toolbars? Pin
Chris Richardson19-Dec-02 18:23
Chris Richardson19-Dec-02 18:23 
GeneralRe: How to get dimensions of client area without toolbars? Pin
Mr.Freeze19-Dec-02 19:33
Mr.Freeze19-Dec-02 19:33 
GeneralRe: How to get dimensions of client area without toolbars? Pin
Chris Richardson19-Dec-02 20:27
Chris Richardson19-Dec-02 20:27 
QuestionHow to get Harddisk serial number ?? Pin
Mahesh Varma18-Dec-02 17:28
Mahesh Varma18-Dec-02 17:28 
AnswerRe: How to get Harddisk serial number ?? Pin
Daniel Strigl18-Dec-02 19:42
Daniel Strigl18-Dec-02 19:42 
QuestionHow to activate view in splitter Frame Pin
super18-Dec-02 17:17
professionalsuper18-Dec-02 17:17 
AnswerRe: How to activate view in splitter Frame Pin
Jeff J18-Dec-02 18:35
Jeff J18-Dec-02 18:35 
GeneralRe: How to activate view in splitter Frame Pin
super18-Dec-02 19:45
professionalsuper18-Dec-02 19:45 
GeneralRe: How to activate view in splitter Frame Pin
Jeff J19-Dec-02 9:22
Jeff J19-Dec-02 9:22 
GeneralRe: How to activate view in splitter Frame Pin
super19-Dec-02 17:10
professionalsuper19-Dec-02 17:10 
GeneralRe: How to activate view in splitter Frame Pin
Jeff J19-Dec-02 21:38
Jeff J19-Dec-02 21:38 
QuestionHow can I set or change in global printer setting (Again) ? Pin
AhMan18-Dec-02 15:51
AhMan18-Dec-02 15:51 

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.