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

C / C++ / MFC

 
QuestionChanging bitmaps using UpdateResource Pin
Kharfax24-Aug-06 7:09
Kharfax24-Aug-06 7:09 
AnswerRe: Changing bitmaps using UpdateResource Pin
David Crow24-Aug-06 7:36
David Crow24-Aug-06 7:36 
GeneralRe: Changing bitmaps using UpdateResource Pin
Kharfax24-Aug-06 7:46
Kharfax24-Aug-06 7:46 
GeneralRe: Changing bitmaps using UpdateResource Pin
$motty24-Aug-06 8:18
$motty24-Aug-06 8:18 
GeneralRe: Changing bitmaps using UpdateResource Pin
Kharfax24-Aug-06 8:27
Kharfax24-Aug-06 8:27 
GeneralRe: Changing bitmaps using UpdateResource Pin
jk chan24-Aug-06 14:42
jk chan24-Aug-06 14:42 
GeneralRe: Changing bitmaps using UpdateResource Pin
Kharfax25-Aug-06 2:21
Kharfax25-Aug-06 2:21 
AnswerProblem solved Pin
Kharfax25-Aug-06 4:40
Kharfax25-Aug-06 4:40 
Questionmemcpy and memset on a structure which has a class as it's member Pin
Diagon Alley24-Aug-06 5:09
Diagon Alley24-Aug-06 5:09 
AnswerRe: memcpy and memset on a structure which has a class as it's member Pin
toxcct24-Aug-06 6:14
toxcct24-Aug-06 6:14 
AnswerRe: memcpy and memset on a structure which has a class as it's member Pin
cmk24-Aug-06 7:08
cmk24-Aug-06 7:08 
AnswerRe: memcpy and memset on a structure which has a class as it's member Pin
Zac Howland25-Aug-06 9:19
Zac Howland25-Aug-06 9:19 
AnswerThanks Guys! Pin
Diagon Alley29-Aug-06 18:58
Diagon Alley29-Aug-06 18:58 
QuestionChanging tray icon tooltip message Pin
samaruf24-Aug-06 5:01
samaruf24-Aug-06 5:01 
AnswerRe: Changing tray icon tooltip message Pin
Waldermort24-Aug-06 7:55
Waldermort24-Aug-06 7:55 
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 

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.