Click here to Skip to main content
15,906,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List control label editing problem Pin
Code-o-mat16-Dec-08 21:43
Code-o-mat16-Dec-08 21:43 
QuestionDebug Assertion failure in AFXWIN2.inl Pin
JJeffrey15-Dec-08 22:09
JJeffrey15-Dec-08 22:09 
AnswerRe: Debug Assertion failure in AFXWIN2.inl Pin
CPallini15-Dec-08 22:14
mveCPallini15-Dec-08 22:14 
GeneralRe: Debug Assertion failure in AFXWIN2.inl Pin
JJeffrey16-Dec-08 13:28
JJeffrey16-Dec-08 13:28 
GeneralRe: Debug Assertion failure in AFXWIN2.inl Pin
CPallini16-Dec-08 21:40
mveCPallini16-Dec-08 21:40 
Questioncan i get demo for COM and OLE controls? Pin
puppya15-Dec-08 21:48
puppya15-Dec-08 21:48 
AnswerRe: can i get demo for COM and OLE controls? Pin
CPallini15-Dec-08 22:09
mveCPallini15-Dec-08 22:09 
QuestionC++ Class Template Full and Partial Specialization query Pin
ComplexLifeForm15-Dec-08 21:47
ComplexLifeForm15-Dec-08 21:47 
Hi,

I have template class with the following declaration

template<typename T>
class PrintUserData
{
public:
template<typename T1, typename T2>
bool PrintData (T1 const& t1, T2 const& t2);

};

How do I specialize this class and it's overload members for the following

1. Specialize for class MyClass / class UserClass etc

2. Overload PrintData template member for class TextFormater i.e. T1 = T2 = TextFormater

3. Overload PrintData template member for class RtfFormater/class TextFormater i.e. T1 = RtfFormatter/TextFormatter, T2 can be anything

4. Overload PrintData template member for class RtfFormater/class TextFormater i.e. T2 = RtfFormatter/TextFormatter, T1 can be anything

I find Full Specialization for specific class is easy
e.g.
template<>
class PrintUserData<MyClass>
{
// other member
};

but I am kind of stuck when I tried to oveload the member method

I am trying to get comfortable with C++ Templates so please assist me in obtaining the desired result. If someone feels that the template class declartion needs to be changed to achieve the desired result please let me know. I will change it accordingly

Thanks and Regards
Smile | :) Smile | :)
AnswerRe: C++ Class Template Full and Partial Specialization query Pin
Stuart Dootson15-Dec-08 22:08
professionalStuart Dootson15-Dec-08 22:08 
GeneralRe: C++ Class Template Full and Partial Specialization query Pin
ComplexLifeForm15-Dec-08 23:56
ComplexLifeForm15-Dec-08 23:56 
GeneralRe: C++ Class Template Full and Partial Specialization query Pin
Stuart Dootson16-Dec-08 3:30
professionalStuart Dootson16-Dec-08 3:30 
GeneralRe: C++ Class Template Full and Partial Specialization query Pin
ComplexLifeForm16-Dec-08 6:28
ComplexLifeForm16-Dec-08 6:28 
GeneralRe: C++ Class Template Full and Partial Specialization query Pin
Stuart Dootson16-Dec-08 7:30
professionalStuart Dootson16-Dec-08 7:30 
QuestionFont of afxmessage or messageBox Pin
tasumisra15-Dec-08 21:23
tasumisra15-Dec-08 21:23 
AnswerRe: Font of afxmessage or messageBox Pin
L. Madhavan15-Dec-08 22:39
L. Madhavan15-Dec-08 22:39 
GeneralRe: Font of afxmessage or messageBox Pin
tasumisra15-Dec-08 23:32
tasumisra15-Dec-08 23:32 
GeneralRe: Font of afxmessage or messageBox Pin
L. Madhavan15-Dec-08 23:54
L. Madhavan15-Dec-08 23:54 
GeneralRe: Font of afxmessage or messageBox Pin
tasumisra16-Dec-08 0:23
tasumisra16-Dec-08 0:23 
GeneralRe: Font of afxmessage or messageBox Pin
Iain Clarke, Warrior Programmer16-Dec-08 9:10
Iain Clarke, Warrior Programmer16-Dec-08 9:10 
Questionabout dlls in visual C ++ 6 and Visual C++ 2005 Pin
DSPCottage15-Dec-08 21:07
DSPCottage15-Dec-08 21:07 
AnswerRe: about dlls in visual C ++ 6 and Visual C++ 2005 Pin
Naveen15-Dec-08 21:33
Naveen15-Dec-08 21:33 
GeneralRe: about dlls in visual C ++ 6 and Visual C++ 2005 Pin
DSPCottage15-Dec-08 22:05
DSPCottage15-Dec-08 22:05 
GeneralRe: about dlls in visual C ++ 6 and Visual C++ 2005 Pin
Naveen15-Dec-08 22:08
Naveen15-Dec-08 22:08 
GeneralRe: about dlls in visual C ++ 6 and Visual C++ 2005 Pin
DSPCottage15-Dec-08 22:17
DSPCottage15-Dec-08 22:17 
GeneralRe: about dlls in visual C ++ 6 and Visual C++ 2005 Pin
Eytukan16-Dec-08 6:39
Eytukan16-Dec-08 6:39 

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.