Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SortItems function of CListCtrl giving a error Pin
Rolf Kristensen8-Feb-11 9:12
Rolf Kristensen8-Feb-11 9:12 
QuestionViewing fits image in visual c++ Pin
keval5p7-Feb-11 19:39
keval5p7-Feb-11 19:39 
AnswerRe: Viewing fits image in visual c++ Pin
Andrew Brock7-Feb-11 20:14
Andrew Brock7-Feb-11 20:14 
QuestionDesktop rect Pin
includeh107-Feb-11 7:08
includeh107-Feb-11 7:08 
AnswerRe: Desktop rect Pin
Hans Dietrich7-Feb-11 7:27
mentorHans Dietrich7-Feb-11 7:27 
AnswerRe: Desktop rect Pin
loyal ginger8-Feb-11 2:55
loyal ginger8-Feb-11 2:55 
QuestionNon-Templatized methods in Template Class? Pin
bob169727-Feb-11 4:28
bob169727-Feb-11 4:28 
AnswerRe: Non-Templatized methods in Template Class? Pin
Stefan_Lang7-Feb-11 7:07
Stefan_Lang7-Feb-11 7:07 
This is a very good question.

I do think that a function within a templated class, such as GetVersion() will indeed be implemented for each class the template gets instantiated for, creating redundand code. If this is not the case I'd really like to know from someone more knowledgable than me.

You can however avoid it with various tricks, such as moving the function(s) in question out of the class definition, or into a base class that doesn't depend on a template class argument.
AnswerRe: Non-Templatized methods in Template Class? Pin
Stefan_Lang7-Feb-11 22:00
Stefan_Lang7-Feb-11 22:00 
GeneralRe: Non-Templatized methods in Template Class? Pin
bob169728-Feb-11 4:46
bob169728-Feb-11 4:46 
GeneralRe: Non-Templatized methods in Template Class? Pin
Stefan_Lang8-Feb-11 5:09
Stefan_Lang8-Feb-11 5:09 
AnswerRe: Non-Templatized methods in Template Class? Pin
CPallini7-Feb-11 22:13
mveCPallini7-Feb-11 22:13 
GeneralRe: Non-Templatized methods in Template Class? Pin
bob169728-Feb-11 4:42
bob169728-Feb-11 4:42 
QuestionC++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
DavJes7-Feb-11 1:47
DavJes7-Feb-11 1:47 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
Hans Dietrich7-Feb-11 2:07
mentorHans Dietrich7-Feb-11 2:07 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
CPallini7-Feb-11 3:00
mveCPallini7-Feb-11 3:00 
AnswerRe: C++ - how to refer a header file which is used in a dll while loading thru loadlibrary method Pin
Stefan_Lang8-Feb-11 1:36
Stefan_Lang8-Feb-11 1:36 
Question"Could not find field 'Description'" error in access database. Pin
Le@rner7-Feb-11 1:21
Le@rner7-Feb-11 1:21 
AnswerRe: "Could not find field 'Description'" error in access database. Pin
David Crow7-Feb-11 8:47
David Crow7-Feb-11 8:47 
QuestionProblem using const float ** Pin
Alex80gbg6-Feb-11 22:41
Alex80gbg6-Feb-11 22:41 
AnswerRe: Problem using const float ** Pin
Stefan_Lang6-Feb-11 23:18
Stefan_Lang6-Feb-11 23:18 
AnswerRe: Problem using const float ** Pin
Andrew Brock6-Feb-11 23:41
Andrew Brock6-Feb-11 23:41 
QuestionDoModal [modified] Pin
john56326-Feb-11 20:16
john56326-Feb-11 20:16 
AnswerRe: DoModal Pin
Cedric Moonen6-Feb-11 21:30
Cedric Moonen6-Feb-11 21:30 
QuestionHow to provent text selection in CComboBox ? Pin
mesajflaviu6-Feb-11 20:01
mesajflaviu6-Feb-11 20:01 

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.