Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Class templates Pin
Michael Dunn5-Aug-06 11:05
sitebuilderMichael Dunn5-Aug-06 11:05 
GeneralRe: Class templates Pin
Jörgen Sigvardsson5-Aug-06 13:17
Jörgen Sigvardsson5-Aug-06 13:17 
GeneralRe: Class templates Pin
Michael Dunn5-Aug-06 13:36
sitebuilderMichael Dunn5-Aug-06 13:36 
GeneralRe: Class templates Pin
Jörgen Sigvardsson5-Aug-06 13:42
Jörgen Sigvardsson5-Aug-06 13:42 
QuestionRe: Class templates Pin
jon-805-Aug-06 13:41
professionaljon-805-Aug-06 13:41 
AnswerRe: Class templates Pin
Jörgen Sigvardsson5-Aug-06 13:18
Jörgen Sigvardsson5-Aug-06 13:18 
AnswerRe: Class templates Pin
Jörgen Sigvardsson5-Aug-06 13:20
Jörgen Sigvardsson5-Aug-06 13:20 
QuestionRe: Class templates [modified] Pin
jon-805-Aug-06 18:43
professionaljon-805-Aug-06 18:43 
The constructor takes no parameters, is that what u mean?

GenericList.h

template<class T>
class CGenericList
{
public:
CGenericList(void)
{
m_pFirst = NULL;
m_pLast = NULL;
m_iCount = 0;
}
...

CSentenceList.h
class CSentenceList : CGenericList<char*>
{
public:
//Methods
CSentenceList(char strFileToRead[MAX_SENTENCE_LENGTH], bool bSorted = false);
virtual ~CSentenceList(void);
void sort();
unsigned int search(const char *strSearch);

//Properties
unsigned int Size;
Sentence Sentences;

private:
Sentence* Head;


};

CSentenceList.cpp

CSentenceList::CSentenceList(char strFileToRead[MAX_SENTENCE_LENGTH], bool bSorted)
: CGenericList<char*> ()
{
// initialize
Size = 0;
CGenericList<char*> LinkedList();

// read from file and update the linked list

// if (bSorted==true)
// {sort the list;}
}
...


Jon


-- modified at 12:41 Monday 7th August, 2006
QuestionCreate a CView as a "child window" without any borders etc Pin
Tengil995-Aug-06 7:32
Tengil995-Aug-06 7:32 
AnswerRe: Create a CView as a "child window" without any borders etc Pin
Bram van Kampen5-Aug-06 15:38
Bram van Kampen5-Aug-06 15:38 
QuestionCSplitterWnd error [modified] Pin
Tengil995-Aug-06 6:53
Tengil995-Aug-06 6:53 
AnswerRe: My CSplitterWnd class Pin
Tengil995-Aug-06 6:54
Tengil995-Aug-06 6:54 
AnswerRe: CSplitterWnd error Pin
Bram van Kampen5-Aug-06 15:59
Bram van Kampen5-Aug-06 15:59 
GeneralRe: CSplitterWnd error Pin
Tengil996-Aug-06 1:14
Tengil996-Aug-06 1:14 
Questionfstream object not cleared from memory Pin
jon-805-Aug-06 4:01
professionaljon-805-Aug-06 4:01 
AnswerRe: fstream object not cleared from memory Pin
Gary R. Wheeler5-Aug-06 5:42
Gary R. Wheeler5-Aug-06 5:42 
GeneralRe: fstream object not cleared from memory Pin
jon-805-Aug-06 6:09
professionaljon-805-Aug-06 6:09 
QuestionAdd a non-resource-dialog to a CPropertySheet Pin
Tengil995-Aug-06 3:43
Tengil995-Aug-06 3:43 
AnswerRe: Add a non-resource-dialog to a CPropertySheet Pin
Tengil995-Aug-06 6:48
Tengil995-Aug-06 6:48 
QuestionActive Foreground Window Pin
Imtiaz Murtaza5-Aug-06 1:44
Imtiaz Murtaza5-Aug-06 1:44 
Questionhow to select CListCtrl Items programatically Pin
GANsJob5-Aug-06 0:54
GANsJob5-Aug-06 0:54 
AnswerRe: how to select CListCtrl Items programatically Pin
Hamid_RT5-Aug-06 1:33
Hamid_RT5-Aug-06 1:33 
AnswerRe: how to select CListCtrl Items programatically Pin
Marc Soleda5-Aug-06 3:54
Marc Soleda5-Aug-06 3:54 
QuestionReading Media File in 100 thread instances Pin
Andy Rama5-Aug-06 0:47
Andy Rama5-Aug-06 0:47 
QuestionCOPY AND PASTE CODE in vc++ Pin
ningthemcha4-Aug-06 23:57
ningthemcha4-Aug-06 23:57 

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.