Click here to Skip to main content
15,905,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Errors in createthread file. Need help! Pin
-=jarl=-5-Feb-03 6:54
-=jarl=-5-Feb-03 6:54 
GeneralRe: Errors in createthread file. Need help! Pin
Pecan2045-Feb-03 8:15
Pecan2045-Feb-03 8:15 
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 
Firstly, the declaration you have there is not correct. ( or is it just formatting which removes the < typename T > bit ? )
Anyways, ( assuming it is not ), to declare a template member function you have to do this;

in header:
<br />
template< typename T > <br />
 void MyFunction( T& );<br />
...<br />
template< typename T ><br />
void MyClass::MyFunction( T & param )<br />
{<br />
 ...<br />
}<br />

The point is that you can't define a templated method outside of the header-file where it is declared. ( The compiler might not complain, even 7 doesn't, but the linker looses it... )
Secondly, this will only partly work if you have anything earlier than VC 7. VC 6 will do it, however it might fail silently on certain cases which can cause you grief later. ( In particular if you try to specialise the member templates )


-=jarl=-
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 
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 

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.