Click here to Skip to main content
16,010,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read Hexidecimal Pin
PJ Arends10-Jan-03 22:19
professionalPJ Arends10-Jan-03 22:19 
GeneralRe: Read Hexidecimal Pin
Paul M Watt10-Jan-03 23:01
mentorPaul M Watt10-Jan-03 23:01 
Generalignoring ignorant irrate illrevelent information Pin
(Steven Hicks)n+110-Jan-03 16:57
(Steven Hicks)n+110-Jan-03 16:57 
GeneralRe: ignoring ignorant irrate illrevelent information Pin
Christian Graus10-Jan-03 17:10
protectorChristian Graus10-Jan-03 17:10 
GeneralRe: ignoring ignorant irrate illrevelent information Pin
Todd Smith11-Jan-03 3:49
Todd Smith11-Jan-03 3:49 
QuestionTemplate ? Pin
Stan the man10-Jan-03 15:24
Stan the man10-Jan-03 15:24 
AnswerRe: Template ? Pin
Michael Dunn10-Jan-03 15:41
sitebuilderMichael Dunn10-Jan-03 15:41 
GeneralRe: Template ? Pin
Stan the man10-Jan-03 23:51
Stan the man10-Jan-03 23:51 
OK. This is the second try.


I had a program with CClass and CBaseClass classes DONE without Template and it works fine. Now I changed things to:

template<class X> CBaseClass
{
...
}

Outside the template the functions are in..

template<class X> void CBaseClass<X>::Function()
{
...
}

I know the base baseclass declaration is OK

AND

template<class X> CClass: public CBaseClass<X>
{
//I tried several syntax for the constructor and other fuunctions

CClass();
virtual ~CClass();

OR

CClass():CBaseClass<X>();
virtual ~CClass():CBaseClass<X>();

void Function():CClass::Function<X>()


//Both don't work

}


Outside the template the functions are in..

template<class X> CClass<X>::CClass()
{

}

...


Now because everything worked before, and I only added the syntax for the template, I know that it must be the syntax or something.

The compiler error is:
error LNK2001: unresolved external symbol ...

What I really need is exactly what the syntax needs to be. I can't find this anywhere at the moment. What I changed seemed very straight forward.

GeneralRe: Template ? Pin
Michael Dunn11-Jan-03 6:14
sitebuilderMichael Dunn11-Jan-03 6:14 
GeneralRe: Template ? Pin
Stan the man11-Jan-03 14:31
Stan the man11-Jan-03 14:31 
GeneralRe: Template ? Pin
Michael Dunn11-Jan-03 19:26
sitebuilderMichael Dunn11-Jan-03 19:26 
GeneralRe: Template ? Pin
Stan the man12-Jan-03 4:19
Stan the man12-Jan-03 4:19 
GeneralRe: Template ? Pin
Stan the man12-Jan-03 4:48
Stan the man12-Jan-03 4:48 
GeneralEvery build destroys my gif resource Pin
georgiek5010-Jan-03 13:51
georgiek5010-Jan-03 13:51 
Generalquestions , questions..... Pin
joshfl10-Jan-03 12:56
joshfl10-Jan-03 12:56 
GeneralRe: questions , questions..... Pin
Michael Dunn10-Jan-03 13:44
sitebuilderMichael Dunn10-Jan-03 13:44 
GeneralRe: questions , questions..... Pin
Joan M12-Jan-03 21:47
professionalJoan M12-Jan-03 21:47 
Generalunique id... Pin
User 988510-Jan-03 12:16
User 988510-Jan-03 12:16 
GeneralRe: unique id... Pin
Chris Losinger10-Jan-03 20:28
professionalChris Losinger10-Jan-03 20:28 
GeneralFun with std::map Pin
Chris Richardson10-Jan-03 11:21
Chris Richardson10-Jan-03 11:21 
GeneralRe: Fun with std::map Pin
AlexO10-Jan-03 11:34
AlexO10-Jan-03 11:34 
GeneralRe: Fun with std::map Pin
Chris Richardson10-Jan-03 11:42
Chris Richardson10-Jan-03 11:42 
GeneralSystem Wide Keyboard Hooking Pin
joshfl10-Jan-03 10:31
joshfl10-Jan-03 10:31 
GeneralRe: System Wide Keyboard Hooking Pin
Joan M10-Jan-03 10:48
professionalJoan M10-Jan-03 10:48 
GeneralRe: System Wide Keyboard Hooking Pin
joshfl10-Jan-03 11:19
joshfl10-Jan-03 11: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.