Click here to Skip to main content
15,923,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CHtmlView with dialog templates? Pin
Rajkumar R5-Jun-07 22:47
Rajkumar R5-Jun-07 22:47 
GeneralRe: CHtmlView with dialog templates? Pin
Hamid_RT5-Jun-07 19:51
Hamid_RT5-Jun-07 19:51 
Questionmail from vc++ program Pin
prathuraj5-Jun-07 18:04
prathuraj5-Jun-07 18:04 
AnswerRe: mail from vc++ program Pin
Hamid_RT5-Jun-07 18:58
Hamid_RT5-Jun-07 18:58 
GeneralRe: mail from vc++ program Pin
prathuraj5-Jun-07 20:58
prathuraj5-Jun-07 20:58 
GeneralRe: mail from vc++ program Pin
Hamid_RT5-Jun-07 21:25
Hamid_RT5-Jun-07 21:25 
QuestionCXX0030: Error : expression cannot be evaluated Pin
Immunity185-Jun-07 16:31
Immunity185-Jun-07 16:31 
QuestionA question on c++ template Pin
Yuwen Zhou5-Jun-07 15:55
Yuwen Zhou5-Jun-07 15:55 
I am a beginner in c++ programming, and I am studying topic about c++ template these few days. I tried to implement a template that have the definition and implementation in .h and .cpp files as follow:


// tpl.h
template <class ttype="">
class tpl
{
private:
int test ;
public:
tpl() ;
int get_test() ;
} ;

// tpl.cpp
template <class ttype="">
tpl::tpl()
{
test=1 ;
}

template <class ttype="">
int tpl::get_test()
{
return test ;
}



But linker errors come out when I compiled the above codes in ms-vc++6.0. I am disturbed by this problem. Could anyone helps me? thanks a lot !

BR

Yuwen
AnswerRe: A question on c++ template Pin
Steve Echols5-Jun-07 17:08
Steve Echols5-Jun-07 17:08 
GeneralRe: A question on c++ template Pin
Yuwen Zhou5-Jun-07 20:52
Yuwen Zhou5-Jun-07 20:52 
AnswerRe: A question on c++ template Pin
Sameerkumar Namdeo5-Jun-07 17:42
Sameerkumar Namdeo5-Jun-07 17:42 
AnswerRe: A question on c++ template [modified] Pin
Rajkumar R5-Jun-07 18:18
Rajkumar R5-Jun-07 18:18 
GeneralRe: A question on c++ template Pin
Yuwen Zhou5-Jun-07 20:57
Yuwen Zhou5-Jun-07 20:57 
AnswerRe: A question on c++ template Pin
Rajkumar R5-Jun-07 23:57
Rajkumar R5-Jun-07 23:57 
QuestionRe: A question on c++ template Pin
David Crow6-Jun-07 2:29
David Crow6-Jun-07 2:29 
QuestionRe: A question on c++ template Pin
David Crow6-Jun-07 2:29
David Crow6-Jun-07 2:29 
AnswerRe: A question on c++ template Pin
Yuwen Zhou6-Jun-07 23:12
Yuwen Zhou6-Jun-07 23:12 
AnswerRe: A question on c++ template Pin
Rajkumar R10-Jun-07 18:33
Rajkumar R10-Jun-07 18:33 
AnswerRe: A question on c++ template Pin
Cedric Moonen5-Jun-07 20:53
Cedric Moonen5-Jun-07 20:53 
AnswerRe: A question on c++ template Pin
Rajkumar R6-Jun-07 0:02
Rajkumar R6-Jun-07 0:02 
GeneralRe: A question on c++ template Pin
Cedric Moonen6-Jun-07 0:59
Cedric Moonen6-Jun-07 0:59 
AnswerRe: A question on c++ template Pin
Rajkumar R6-Jun-07 1:25
Rajkumar R6-Jun-07 1:25 
GeneralRe: A question on c++ template Pin
Cedric Moonen6-Jun-07 1:39
Cedric Moonen6-Jun-07 1:39 
GeneralRe: A question on c++ template Pin
Rajkumar R6-Jun-07 1:50
Rajkumar R6-Jun-07 1:50 
QuestionHow i create folder in C++? Pin
Immunity185-Jun-07 14:14
Immunity185-Jun-07 14:14 

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.