Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing tray icon tooltip message Pin
ThatsAlok24-Aug-06 18:10
ThatsAlok24-Aug-06 18:10 
GeneralRe: Changing tray icon tooltip message Pin
Waldermort24-Aug-06 22:54
Waldermort24-Aug-06 22:54 
QuestionConfussion with Assigning an applications's process priority [modified] Pin
kitty524-Aug-06 5:01
kitty524-Aug-06 5:01 
AnswerRe: Confussion with Assigning an applications's process priority Pin
Waldermort24-Aug-06 7:47
Waldermort24-Aug-06 7:47 
Questionwave file bandpass filter (with FFT?) Pin
ilFrate24-Aug-06 3:39
ilFrate24-Aug-06 3:39 
AnswerRe: wave file bandpass filter (with FFT?) Pin
Jun Du24-Aug-06 7:11
Jun Du24-Aug-06 7:11 
GeneralRe: wave file bandpass filter (with FFT?) Pin
ilFrate24-Aug-06 21:43
ilFrate24-Aug-06 21:43 
QuestionTemplate specialization with static data member Pin
tuxyboy24-Aug-06 3:09
tuxyboy24-Aug-06 3:09 
I get LNK2005 errors with the static CRuntimeClass datamember of the specialized template
Why?
I simplified the classes to highlight the problem.
TXBase contains special algorithms and also the CRuntimeClass functions and static classTXBase to make RUNTIME_CLASS things work.

////////////////////////////////////////////////////////////
// TXView template
////////////////////////////////////////////////////////////
#undef CLASS_NAME
#define CLASS_NAME classTXView_##BASE

template < class BASE >
class TXView : public TXBase < BASE >
{
public:
TXView(UINT nIDTemplate = 0);
virtual CRuntimeClass* GetRuntimeClass();

static const CRuntimeClass CLASS_NAME;
};

template < class BASE > TXView< BASE >::TXView(UINT nIDTemplate /*= 0*/)
: TXBase< BASE >::TXBase(nIDTemplate)
{
}
template < class BASE > const CRuntimeClass TXView<base />::CLASS_NAME =
{
"TXView", sizeof(class TXView<base />), 0xFFFF, TXView<base />::CreateObject,
TXView<base />::_GetBaseClass, 0
};

template < class BASE > CRuntimeClass* TXView<base />::GetRuntimeClass()
{
return (CRuntimeClass*)&TXView<base />::CLASS_NAME;
}

/////////////////////////////////////////////////////////////////
// Specialized template for FormView
/////////////////////////////////////////////////////////////////
#undef CLASS_NAME
#define CLASS_NAME classTXView_##CFormView

template <>
class TXView < CFormView > : public TXBase < CFormView >
{
public:
inline TXView(UINT nIDTemplate = 0);
inline virtual CRuntimeClass* GetRuntimeClass();


static const CRuntimeClass CLASS_NAME;
};


template <> inline TXView< CFormView >::TXView(UINT nIDTemplate /*= 0*/)
: TXBase< CFormView >(nIDTemplate)
{
}

template <> const CRuntimeClass TXView<cformview>::CLASS_NAME =
{
"TXView", sizeof(TXView<cformview>), 0xFFFF, TXView<cformview>::CreateObject, &TXView<cformview>::_GetBaseClass, 0
};

template <> inline CRuntimeClass* TXView<cformview>::GetRuntimeClass()
{
return (CRuntimeClass*)&TXView<cformview>::CLASS_NAME;
}

Thanks if you can help!
QuestionBitmap transparency at picture_control [modified] Pin
Jarley D.G.24-Aug-06 2:52
Jarley D.G.24-Aug-06 2:52 
AnswerRe: Bitmap transparency at picture_control Pin
KarstenK24-Aug-06 3:36
mveKarstenK24-Aug-06 3:36 
AnswerRe: Bitmap transparency at picture_control Pin
Waldermort24-Aug-06 4:11
Waldermort24-Aug-06 4:11 
AnswerRe: Bitmap transparency at picture_control Pin
Justin Tay24-Aug-06 4:25
Justin Tay24-Aug-06 4:25 
GeneralRe: Bitmap transparency at picture_control Pin
Jarley D.G.24-Aug-06 5:26
Jarley D.G.24-Aug-06 5:26 
QuestionSafe functions after heap corruption? Pin
chilituna24-Aug-06 2:20
chilituna24-Aug-06 2:20 
AnswerRe: Safe functions after heap corruption? Pin
David Crow24-Aug-06 2:38
David Crow24-Aug-06 2:38 
AnswerRe: Safe functions after heap corruption? Pin
Stephen Hewitt24-Aug-06 17:35
Stephen Hewitt24-Aug-06 17:35 
AnswerRe: Safe functions after heap corruption? Pin
ThatsAlok24-Aug-06 18:20
ThatsAlok24-Aug-06 18:20 
AnswerRe: Safe functions after heap corruption? Pin
chilituna24-Aug-06 23:37
chilituna24-Aug-06 23:37 
QuestionIntilaisation Problem (colors, icons to the button) Pin
kiranin24-Aug-06 2:08
kiranin24-Aug-06 2:08 
AnswerRe: Intilaisation Problem (colors, icons to the button) Pin
prasad_som24-Aug-06 2:21
prasad_som24-Aug-06 2:21 
QuestionRe: Intilaisation Problem (colors, icons to the button) Pin
kiranin24-Aug-06 2:35
kiranin24-Aug-06 2:35 
QuestionRe: Intilaisation Problem (colors, icons to the button) Pin
prasad_som24-Aug-06 2:43
prasad_som24-Aug-06 2:43 
QuestionRe: Intilaisation Problem (colors, icons to the button) Pin
kiranin24-Aug-06 2:54
kiranin24-Aug-06 2:54 
AnswerRe: Intilaisation Problem (colors, icons to the button) Pin
Hamid_RT25-Aug-06 1:49
Hamid_RT25-Aug-06 1:49 
GeneralRe: Intilaisation Problem (colors, icons to the button) Pin
kiranin25-Aug-06 3:43
kiranin25-Aug-06 3:43 

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.