Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding icons to an imagelist that is used in a listctrl Pin
RobJones10-Mar-03 6:27
RobJones10-Mar-03 6:27 
GeneralRe: Adding icons to an imagelist that is used in a listctrl Pin
Jochem11-Mar-03 1:15
Jochem11-Mar-03 1:15 
QuestionHow to store a set of data while each data has several kinds of type ? Pin
adapterJohn10-Mar-03 4:56
adapterJohn10-Mar-03 4:56 
AnswerRe: How to store a set of data while each data has several kinds of type ? Pin
Tim Smith10-Mar-03 5:08
Tim Smith10-Mar-03 5:08 
AnswerRe: How to store a set of data while each data has several kinds of type ? Pin
valikac10-Mar-03 11:26
valikac10-Mar-03 11:26 
GeneralRe: How to store a set of data while each data has several kinds of type ? Pin
adapterJohn10-Mar-03 11:36
adapterJohn10-Mar-03 11:36 
GeneralRe: How to store a set of data while each data has several kinds of type ? Pin
valikac10-Mar-03 12:39
valikac10-Mar-03 12:39 
Generalclass template declaration in seperate files Pin
Julian Churchill10-Mar-03 4:51
Julian Churchill10-Mar-03 4:51 
Hi,

I have a class template defined in a file called X.h:

template<class a="defaultA," class="" b="defaultB">
class X
{
...
bool test(string args);
};

And the functions defined in X.cpp :

template <class a,="" class="" b="">
bool X<a, b="">::test(string args)
{ ...
}

But the compiler (MSVC++6.0) claims "unresolved external symbol: bool X<defaulta, defaultb="">::test(string args)" during the linking stage. It works
fine if the function definition is in the X.h file but when separated the compiler can't seem to find the template and create the correct function. Note: it works if I change the definition in X.cpp to the specialized version, e.g.:
bool X<defaulta, defaultb="">::test(string args) { ... };

If anyone has any ideas it would be appreciated,
Cheers,
Julian Churchill
GeneralRe: class template declaration in seperate files Pin
Tim Smith10-Mar-03 5:11
Tim Smith10-Mar-03 5:11 
GeneralProblem with string limitation Pin
Andrea Ferraro10-Mar-03 4:32
Andrea Ferraro10-Mar-03 4:32 
GeneralRe: Problem with string limitation Pin
AlexO10-Mar-03 4:42
AlexO10-Mar-03 4:42 
GeneralRe: Problem with string limitation Pin
Tim Smith10-Mar-03 4:43
Tim Smith10-Mar-03 4:43 
GeneralRe: Problem with string limitation Pin
Andrea Ferraro10-Mar-03 5:52
Andrea Ferraro10-Mar-03 5:52 
GeneralRe: Problem with string limitation Pin
Tim Smith10-Mar-03 6:26
Tim Smith10-Mar-03 6:26 
GeneralRe: Problem with string limitation Pin
dlhson210-Mar-03 7:09
dlhson210-Mar-03 7:09 
GeneralBitmap to Icon Pin
Jason Hooper10-Mar-03 4:27
Jason Hooper10-Mar-03 4:27 
GeneralRe: Bitmap to Icon Pin
Baris Kurtlutepe10-Mar-03 5:16
Baris Kurtlutepe10-Mar-03 5:16 
GeneralProblem when creating instance of class in case structure. Pin
adapterJohn10-Mar-03 4:00
adapterJohn10-Mar-03 4:00 
GeneralRe: Problem when creating instance of class in case structure. Pin
krism10-Mar-03 4:07
krism10-Mar-03 4:07 
GeneralRe: Problem when creating instance of class in case structure. Pin
adapterJohn10-Mar-03 4:16
adapterJohn10-Mar-03 4:16 
GeneralRe: Problem when creating instance of class in case structure. Pin
Chris Losinger10-Mar-03 4:09
professionalChris Losinger10-Mar-03 4:09 
GeneralRe: Problem when creating instance of class in case structure. Pin
adapterJohn10-Mar-03 4:12
adapterJohn10-Mar-03 4:12 
GeneralComms Problems Pin
TheFox10-Mar-03 1:49
TheFox10-Mar-03 1:49 
GeneralRe: Comms Problems Pin
Ted Ferenc10-Mar-03 3:49
Ted Ferenc10-Mar-03 3:49 
GeneralRe: Comms Problems Pin
TheFox10-Mar-03 5:29
TheFox10-Mar-03 5:29 

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.