Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can enable child window's MenuBar Pin
Abhijit D. Babar21-Jan-09 3:48
Abhijit D. Babar21-Jan-09 3:48 
Questionhotkey for menu item not showing Pin
sabapathy_8021-Jan-09 2:57
sabapathy_8021-Jan-09 2:57 
AnswerRe: hotkey for menu item not showing Pin
Iain Clarke, Warrior Programmer21-Jan-09 3:34
Iain Clarke, Warrior Programmer21-Jan-09 3:34 
GeneralRe: hotkey for menu item not showing Pin
sabapathy_8021-Jan-09 4:07
sabapathy_8021-Jan-09 4:07 
GeneralRe: hotkey for menu item not showing Pin
Iain Clarke, Warrior Programmer21-Jan-09 4:19
Iain Clarke, Warrior Programmer21-Jan-09 4:19 
Questionnon dependent names in template base class Pin
f_jo21-Jan-09 2:45
f_jo21-Jan-09 2:45 
AnswerRe: non dependent names in template base class Pin
Sarath C21-Jan-09 3:18
Sarath C21-Jan-09 3:18 
AnswerRe: non dependent names in template base class Pin
Stuart Dootson21-Jan-09 3:45
professionalStuart Dootson21-Jan-09 3:45 
One alternative mentioned by the GCC docs[^] is this:

template <typename T> struct Base
{
   int i;
};

template <typename T> struct Derived : public Base<T>
{
   using Base<T>::i;
   int get_i()
   {
      return i;
   }
};


i.e. have a using declaration to bring the base classes name into the derived classes scope. This declaration has to be at the class, not in the method(s) that use the base classes name.

[edit] PS - as far as I can tell, no Microsoft C++ compiler up to and including the one in Visual Studio 2008 does this as per the standard - it will see the non-dependent name even though it's not meant to. g++ does conform to the standard, however, and has done since at least gcc 3.4.2 (which is the earliest one I've got access to). [/edit]
GeneralRe: non dependent names in template base class Pin
f_jo21-Jan-09 5:40
f_jo21-Jan-09 5:40 
GeneralRe: non dependent names in template base class Pin
f_jo21-Jan-09 6:43
f_jo21-Jan-09 6:43 
GeneralRe: non dependent names in template base class Pin
Stuart Dootson21-Jan-09 7:48
professionalStuart Dootson21-Jan-09 7:48 
QuestionHow to _properly_ pass a string from a DLL to the App? Pin
OwenBurnett21-Jan-09 2:43
OwenBurnett21-Jan-09 2:43 
AnswerRe: How to _properly_ pass a string from a DLL to the App? Pin
Stuart Dootson21-Jan-09 4:18
professionalStuart Dootson21-Jan-09 4:18 
QuestionConvert a text file into image (tiff file) Pin
Kiran Pinjala21-Jan-09 2:33
Kiran Pinjala21-Jan-09 2:33 
JokeRe: Convert a text file into image (tiff file) Pin
Sarath C21-Jan-09 2:50
Sarath C21-Jan-09 2:50 
JokeRe: Convert a text file into image (tiff file) Pin
Nishad S21-Jan-09 2:52
Nishad S21-Jan-09 2:52 
GeneralRe: Convert a text file into image (tiff file) Pin
Kiran Pinjala21-Jan-09 3:37
Kiran Pinjala21-Jan-09 3:37 
AnswerRe: Convert a text file into image (tiff file) Pin
Nishad S21-Jan-09 2:50
Nishad S21-Jan-09 2:50 
AnswerRe: Convert a text file into image (tiff file) Pin
Hamid_RT21-Jan-09 4:44
Hamid_RT21-Jan-09 4:44 
QuestionHow to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Naveen_Kummar21-Jan-09 2:26
Naveen_Kummar21-Jan-09 2:26 
AnswerRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Nishad S21-Jan-09 2:57
Nishad S21-Jan-09 2:57 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Naveen_Kummar21-Jan-09 17:25
Naveen_Kummar21-Jan-09 17:25 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Nishad S21-Jan-09 20:13
Nishad S21-Jan-09 20:13 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Naveen_Kummar21-Jan-09 21:47
Naveen_Kummar21-Jan-09 21:47 
GeneralRe: How to draw black colored outline for white colored font drawn on a TIF image file for font size of 8? Pin
Nishad S21-Jan-09 22:51
Nishad S21-Jan-09 22: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.