Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to close all child windows in MDI? Pin
William.Wang16-Jul-06 22:39
William.Wang16-Jul-06 22:39 
GeneralRe: how to close all child windows in MDI? Pin
zeus_master16-Jul-06 22:59
zeus_master16-Jul-06 22:59 
GeneralRe: how to close all child windows in MDI? Pin
David Crow17-Jul-06 3:15
David Crow17-Jul-06 3:15 
Questionhow can list box display other language? [modified] Pin
mimimimilaw16-Jul-06 15:21
mimimimilaw16-Jul-06 15:21 
AnswerRe: how can list box display other language? Pin
Maxwell Chen16-Jul-06 17:20
Maxwell Chen16-Jul-06 17:20 
GeneralRe: how can list box display other language? Pin
mimimimilaw16-Jul-06 18:21
mimimimilaw16-Jul-06 18:21 
QuestionDisplay message from DLL Pin
Manjunath S16-Jul-06 7:16
Manjunath S16-Jul-06 7:16 
AnswerRe: Display message from DLL Pin
William.Wang16-Jul-06 17:14
William.Wang16-Jul-06 17:14 
QuestionRe: Display message from DLL Pin
Manjunath S16-Jul-06 19:11
Manjunath S16-Jul-06 19:11 
AnswerRe: Display message from DLL Pin
<color>Aljechin 16-Jul-06 19:43
<color>Aljechin 16-Jul-06 19:43 
QuestionRe: Display message from DLL Pin
David Crow17-Jul-06 3:17
David Crow17-Jul-06 3:17 
AnswerRe: Display message from DLL Pin
William.Wang16-Jul-06 22:49
William.Wang16-Jul-06 22:49 
GeneralRe: Display message from DLL Pin
Manjunath S17-Jul-06 0:15
Manjunath S17-Jul-06 0:15 
GeneralRe: Display message from DLL Pin
William.Wang17-Jul-06 15:46
William.Wang17-Jul-06 15:46 
QuestionRe: Display message from DLL Pin
David Crow17-Jul-06 3:19
David Crow17-Jul-06 3:19 
QuestionLNK2001 - unresolved external symbols Pin
jon-8016-Jul-06 7:14
professionaljon-8016-Jul-06 7:14 
AnswerRe: LNK2001 - unresolved external symbols Pin
Hamid_RT16-Jul-06 8:52
Hamid_RT16-Jul-06 8:52 
AnswerRe: LNK2001 - unresolved external symbols Pin
RChin16-Jul-06 11:03
RChin16-Jul-06 11:03 
AnswerRe: LNK2001 - unresolved external symbols Pin
David Crow17-Jul-06 3:21
David Crow17-Jul-06 3:21 
QuestionTo hide menu of SDI app (MFC 8) Pin
Maxwell Chen16-Jul-06 6:55
Maxwell Chen16-Jul-06 6:55 
Answer[Solution]: To hide menu of SDI app (MFC 8) Pin
Maxwell Chen16-Jul-06 17:53
Maxwell Chen16-Jul-06 17:53 
AnswerRe: To hide menu of SDI app (MFC 8) Pin
Parthi_Appu16-Jul-06 19:07
Parthi_Appu16-Jul-06 19:07 
QuestionC2512 - No default constructor available Pin
jon-8016-Jul-06 5:04
professionaljon-8016-Jul-06 5:04 
The compiler warns at the following

#include "StdAfx.h"
#include ".\sentencelist.h"

CSentenceList::CSentenceList(bool bCreateArray) : CSentenceArray(bCreateArray)
{ int x = NULL; //... this is where the compilation is interrupted
}

CSentenceList::~CSentenceList(void)
{
}


SentenceAr.h

#pragma once
#include <ostream>

using namespace std;

class CSentenceArray
// Sentences stored as an array
{ public:
CSentenceArray(bool bCreateArray);
virtual ~CSentenceArray(void);
void readFromFile (const char *pszFileName);
//void Display (ostream &Sentence);
void sortSentences(bool bAscending); // implements BubbleSort or quicksort
void Clear();
int FirstWord(const char *ptrWord);
int HowManyWords(const char *pszWord);

protected:
//virtual void storeSentence(const char *pszSentence);
//virtual const char *getNextSentence();
//virtual const char *peekNextSentence();
//virtual void swapWithNext();
//virtual void Reset();
//virtual void eraseAll();
private:
char *m_pSentences;
int m_iCurrentPos;
};

SentenceList.h

#pragma once
using namespace std;

#include "sentencear.h"

class CSentenceList :
// Sentences stored as a linked list
public CSentenceArray
{
public:
CSentenceList(bool bCreateArray);
virtual ~CSentenceList();
void deleteWord( const char *pszWord);
void printMaxSentences (ostream &out);


protected:
void CSentenceArray(bool bCreateArray);
virtual void storeSentence(const char *pszSentence);
virtual void swapWithNext();
virtual int HowManyWords(const char *pszWord);
};



Jon
AnswerRe: C2512 - No default constructor available [modified] Pin
Sarath C16-Jul-06 5:28
Sarath C16-Jul-06 5:28 
GeneralRe: C2512 - No default constructor available Pin
jon-8016-Jul-06 6:05
professionaljon-8016-Jul-06 6:05 

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.