Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGUI Dll Problems Pin
Ricky_TheBard5-Feb-03 5:08
Ricky_TheBard5-Feb-03 5:08 
GeneralGetDlgItem question. Pin
Maximilien5-Feb-03 4:13
Maximilien5-Feb-03 4:13 
GeneralRe: GetDlgItem question. Pin
Paul M Watt5-Feb-03 8:13
mentorPaul M Watt5-Feb-03 8:13 
GeneralRe: GetDlgItem question. Pin
Abbas_Riazi5-Feb-03 22:24
professionalAbbas_Riazi5-Feb-03 22:24 
Questionusing template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 4:09
professionalJoan M5-Feb-03 4:09 
AnswerRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:36
-=jarl=-5-Feb-03 4:36 
GeneralRe: using template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 4:44
professionalJoan M5-Feb-03 4:44 
GeneralRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:46
-=jarl=-5-Feb-03 4:46 
...right, so reading, my reply again I realise that it might not be entirely clear....;P

What I was trying to say was;
Member function templates are poorly supported by VC 6
Member function templates are supported by VC 7, however...
Member function template specialisation is not, ( not properly, anyways ),

What you are trying to do, ( splitting template declaration and definition into
separate files ), is the subject of the mysterious export keyword, which for
numerous reasons has been deemed a red herring.

Unfortunately (?), the only solution is to keep the declaration and definition in the same header file.

If you want to make sure that the linker has a single instance of a template somewhere, ( and not rely on client code usage patterns ), you can instantiate it using the
template keyword on its own, like so;

in some cpp files somwhere...
<br />
template MyTemplatedClass<SomeType>;<br />


this will generate all the code for MyTemplatedClas<sometype> in the cpp file for the linker to use. HOWEVER....this doesn't work for template member functions, only for the whole class, ( or perhaps for free functions. )

So...'tis a bit messy...




-=jarl=-
GeneralRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:48
-=jarl=-5-Feb-03 4:48 
AnswerRe: using template functions as part of a class? is it possible? Pin
Joaquín M López Muñoz5-Feb-03 8:14
Joaquín M López Muñoz5-Feb-03 8:14 
GeneralRe: using template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 4:44
professionalJoan M5-Feb-03 4:44 
GeneralRe: using template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 20:27
professionalJoan M5-Feb-03 20:27 
GeneralRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:57
-=jarl=-5-Feb-03 4:57 
Generalnew panel in statusbar is tiny! Pin
ns5-Feb-03 4:03
ns5-Feb-03 4:03 
Generaladditional bit of info Pin
ns5-Feb-03 4:11
ns5-Feb-03 4:11 
GeneralRe: new panel in statusbar is tiny! Pin
Maximilien5-Feb-03 4:19
Maximilien5-Feb-03 4:19 
GeneralA big thank you!! Pin
ns5-Feb-03 4:23
ns5-Feb-03 4:23 
QuestionProblems with Class Wizard? Pin
aslm5-Feb-03 3:53
aslm5-Feb-03 3:53 
AnswerRe: Problems with Class Wizard? Pin
Joan M5-Feb-03 4:14
professionalJoan M5-Feb-03 4:14 
GeneralRe: Problems with Class Wizard? Pin
Harold Bamford6-Feb-03 9:39
Harold Bamford6-Feb-03 9:39 
Generalcapturing keypressing events when focus is on different window Pin
sulaxan5-Feb-03 3:12
sulaxan5-Feb-03 3:12 
GeneralRe: capturing keypressing events when focus is on different window Pin
Jeremy Falcon5-Feb-03 3:39
professionalJeremy Falcon5-Feb-03 3:39 
GeneralRe: capturing keypressing events when focus is on different window Pin
Jeremy Falcon5-Feb-03 3:41
professionalJeremy Falcon5-Feb-03 3:41 
GeneralExecuting Remote Commands on an FTP Server Pin
Alexinuk5-Feb-03 2:05
Alexinuk5-Feb-03 2:05 
GeneralUse MSDN Pin
AlexO5-Feb-03 2:40
AlexO5-Feb-03 2:40 

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.