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

C / C++ / MFC

 
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 
GeneralRe: C2512 - No default constructor available Pin
bob1697216-Jul-06 6:37
bob1697216-Jul-06 6:37 
GeneralRe: C2512 - No default constructor available Pin
jon-8016-Jul-06 6:46
professionaljon-8016-Jul-06 6:46 
GeneralRe: C2512 - No default constructor available Pin
bob1697216-Jul-06 6:49
bob1697216-Jul-06 6:49 
GeneralRe: C2512 - No default constructor available Pin
David Crow17-Jul-06 3:24
David Crow17-Jul-06 3:24 
AnswerRe: C2512 - No default constructor available Pin
Mike Dimmick16-Jul-06 6:44
Mike Dimmick16-Jul-06 6:44 
GeneralRe: C2512 - No default constructor available [modified] Pin
bob1697216-Jul-06 6:53
bob1697216-Jul-06 6:53 
QuestionHow to convert this c++ code to javascript/html form? Pin
L33VaNcL33F16-Jul-06 3:21
L33VaNcL33F16-Jul-06 3:21 
AnswerRe: How to convert this c++ code to javascript/html form? Pin
Justin Tay16-Jul-06 3:33
Justin Tay16-Jul-06 3:33 
Questionerror C2259: : cannot instantiate abstract class Pin
RockyJames16-Jul-06 1:35
RockyJames16-Jul-06 1:35 
AnswerRe: error C2259: : cannot instantiate abstract class Pin
vecodo_doon16-Jul-06 3:26
vecodo_doon16-Jul-06 3:26 
AnswerRe: error C2259: : cannot instantiate abstract class Pin
Taka Muraoka16-Jul-06 3:28
Taka Muraoka16-Jul-06 3:28 
GeneralRe: error C2259: : cannot instantiate abstract class Pin
RockyJames16-Jul-06 3:42
RockyJames16-Jul-06 3:42 
GeneralRe: error C2259: : cannot instantiate abstract class Pin
Taka Muraoka16-Jul-06 4:02
Taka Muraoka16-Jul-06 4:02 
GeneralRe: error C2259: : cannot instantiate abstract class Pin
Mike Dimmick16-Jul-06 7:23
Mike Dimmick16-Jul-06 7:23 
Questionsteps for connection with server? Pin
With_problem16-Jul-06 1:15
With_problem16-Jul-06 1:15 

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.