Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionClipboard change event? Pin
fklldsvs20-Aug-06 8:19
fklldsvs20-Aug-06 8:19 
AnswerRe: Clipboard change event? Pin
Ravi Bhavnani20-Aug-06 8:48
professionalRavi Bhavnani20-Aug-06 8:48 
AnswerRe: Clipboard change event? Pin
Michael Dunn20-Aug-06 10:39
sitebuilderMichael Dunn20-Aug-06 10:39 
AnswerRe: Clipboard change event? Pin
Hamid_RT20-Aug-06 20:40
Hamid_RT20-Aug-06 20:40 
QuestionCannot trap F9 key in my application!!! Pin
SanjaySMK20-Aug-06 7:56
SanjaySMK20-Aug-06 7:56 
QuestionTemplates and protected members [modified] Pin
JKallen20-Aug-06 7:46
JKallen20-Aug-06 7:46 
AnswerRe: Templates and protected members Pin
Justin Tay20-Aug-06 8:14
Justin Tay20-Aug-06 8:14 
GeneralRe: Templates and protected members Pin
JKallen20-Aug-06 8:32
JKallen20-Aug-06 8:32 
OK Here goes....

Here is a useless example in real life, but this is a simplified example of where I am getting a compiler error.

template <typename T> class MyClass{
public:
//.....................public members and functions
virtual bool copy_whatever_I_can(const MyClass<T>& object);

protected:
int m_int;
T m_data
};

template <typename T> virtual bool MyClass<T>::copy_whatever_I_can(const MyClass<T>& the_char){
m_int = the_char.m_int; //all objects of MyClass have the m_int variable
return true;
}

MyClass<int> my_ints;
MyClass<char> my_chars;

my_ints.copy_whatever_I_can(my_chars); //<----this causes the cannot access protected member error


GeneralRe: Templates and protected members [modified] Pin
Justin Tay20-Aug-06 8:41
Justin Tay20-Aug-06 8:41 
GeneralRe: Templates and protected members [modified] Pin
JKallen20-Aug-06 9:11
JKallen20-Aug-06 9:11 
GeneralRe: Templates and protected members Pin
jk chan21-Aug-06 18:06
jk chan21-Aug-06 18:06 
AnswerRe: Templates and protected members Pin
Michael Dunn20-Aug-06 10:46
sitebuilderMichael Dunn20-Aug-06 10:46 
Questionios::nocreate and acces modifiers (2) Pin
jon-8020-Aug-06 7:32
professionaljon-8020-Aug-06 7:32 
AnswerRe: ios::nocreate and acces modifiers (2) [modified] Pin
Waldermort20-Aug-06 7:58
Waldermort20-Aug-06 7:58 
Questionios::nocreate Pin
jon-8020-Aug-06 7:01
professionaljon-8020-Aug-06 7:01 
AnswerRe: ios::nocreate Pin
Bob X20-Aug-06 10:00
Bob X20-Aug-06 10:00 
AnswerRe: ios::nocreate Pin
jon-8020-Aug-06 10:18
professionaljon-8020-Aug-06 10:18 
GeneralRe: ios::nocreate [modified] Pin
Bob X20-Aug-06 16:48
Bob X20-Aug-06 16:48 
Questionomanip... was this class superseded in vs2003? Pin
jon-8020-Aug-06 6:54
professionaljon-8020-Aug-06 6:54 
AnswerRe: omanip... was this class superseded in vs2003? Pin
Christian Graus20-Aug-06 11:16
protectorChristian Graus20-Aug-06 11:16 
GeneralRe: omanip... was this class superseded in vs2003? Pin
jon-8021-Aug-06 5:05
professionaljon-8021-Aug-06 5:05 
Questionhow to control windows explorer ? Pin
Kriptoz20-Aug-06 6:42
Kriptoz20-Aug-06 6:42 
AnswerRe: how to control windows explorer ? Pin
Waldermort20-Aug-06 7:28
Waldermort20-Aug-06 7:28 
Questionhow to get the following info. from a thread Pin
zhijia.yuan20-Aug-06 6:38
zhijia.yuan20-Aug-06 6:38 
AnswerRe: how to get the following info. from a thread Pin
Michael Dunn20-Aug-06 6:51
sitebuilderMichael Dunn20-Aug-06 6:51 

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.