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

C / C++ / MFC

 
QuestionService Admin Pin
VC_RYK8-Jun-07 0:31
VC_RYK8-Jun-07 0:31 
AnswerRe: Service Admin Pin
Nelek8-Jun-07 3:25
protectorNelek8-Jun-07 3:25 
Questionpointer and message Pin
whiteclouds8-Jun-07 0:08
whiteclouds8-Jun-07 0:08 
AnswerRe: pointer and message Pin
Jijo.Raj8-Jun-07 2:47
Jijo.Raj8-Jun-07 2:47 
GeneralRe: pointer and message Pin
whiteclouds10-Jun-07 14:39
whiteclouds10-Jun-07 14:39 
QuestionRe: pointer and message Pin
Mark Salsbery8-Jun-07 7:09
Mark Salsbery8-Jun-07 7:09 
AnswerRe: pointer and message Pin
whiteclouds10-Jun-07 14:40
whiteclouds10-Jun-07 14:40 
QuestionAnother question on c++ template Pin
Yuwen Zhou8-Jun-07 0:06
Yuwen Zhou8-Jun-07 0:06 
Hi guys, I have the second question about template. I encountered it during my studying.

for example, I have a template class both in .h & .cpp files as follow:

1:  // a.h
2:  template < class T >
3:  class TTEST
4:  {
5:  public:
6:    struct TS
7:    {
8:      int i ;
9:    } ;
10: public:
11:   TS* test1() ;
12:  } ;

13: // a.cpp
14: #include "a.h"
15: template < class T >
16: TS* TTEST < T >::test1()
17: {
18:   return NULL;
19: }


But I got a compiler error at line 16 while building it. I know there is something wrong with the " TS* ", but I don't know how to fix it. Could an y one help me ? thx !
AnswerRe: Another question on c++ template Pin
CPallini8-Jun-07 0:26
mveCPallini8-Jun-07 0:26 
GeneralRe: Another question on c++ template Pin
Yuwen Zhou8-Jun-07 0:30
Yuwen Zhou8-Jun-07 0:30 
GeneralRe: Another question on c++ template Pin
CPallini8-Jun-07 0:36
mveCPallini8-Jun-07 0:36 
GeneralRe: Another question on c++ template Pin
David Crow8-Jun-07 2:59
David Crow8-Jun-07 2:59 
AnswerRe: Another question on c++ template Pin
Christian Graus8-Jun-07 0:27
protectorChristian Graus8-Jun-07 0:27 
AnswerRe: Another question on c++ template Pin
whiteclouds8-Jun-07 0:30
whiteclouds8-Jun-07 0:30 
GeneralRe: Another question on c++ template Pin
Yuwen Zhou8-Jun-07 0:37
Yuwen Zhou8-Jun-07 0:37 
AnswerRe: Another question on c++ template Pin
Matthew Faithfull8-Jun-07 0:36
Matthew Faithfull8-Jun-07 0:36 
GeneralRe: Another question on c++ template Pin
Yuwen Zhou8-Jun-07 0:49
Yuwen Zhou8-Jun-07 0:49 
JokeRe: Another question on c++ template Pin
CPallini8-Jun-07 2:09
mveCPallini8-Jun-07 2:09 
GeneralRe: Another question on c++ template Pin
Yuwen Zhou8-Jun-07 5:10
Yuwen Zhou8-Jun-07 5:10 
Questionauto_ptr Pin
vibindia7-Jun-07 23:42
vibindia7-Jun-07 23:42 
AnswerRe: auto_ptr Pin
CPallini7-Jun-07 23:52
mveCPallini7-Jun-07 23:52 
GeneralRe: auto_ptr Pin
vibindia8-Jun-07 0:00
vibindia8-Jun-07 0:00 
GeneralRe: auto_ptr Pin
CPallini8-Jun-07 0:05
mveCPallini8-Jun-07 0:05 
GeneralRe: auto_ptr Pin
vibindia8-Jun-07 0:09
vibindia8-Jun-07 0:09 
QuestionRegisterHotKey Ctrl+Alt+F1 Pin
Andy H7-Jun-07 23:19
Andy H7-Jun-07 23:19 

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.