Click here to Skip to main content
15,906,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get ampersand (&) into button text Pin
paulb7-Jan-04 12:57
paulb7-Jan-04 12:57 
AnswerRe: How to get ampersand (&) into button text Pin
John R. Shaw7-Jan-04 13:16
John R. Shaw7-Jan-04 13:16 
GeneralRe: How to get ampersand (&) into button text Pin
paulb7-Jan-04 13:54
paulb7-Jan-04 13:54 
GeneralCalling JavaScript functions from an ActiveX Pin
obe7-Jan-04 12:49
obe7-Jan-04 12:49 
GeneralRe: Calling JavaScript functions from an ActiveX Pin
John R. Shaw7-Jan-04 13:45
John R. Shaw7-Jan-04 13:45 
GeneralRe: Calling JavaScript functions from an ActiveX Pin
obe7-Jan-04 19:19
obe7-Jan-04 19:19 
GeneralRe: Calling JavaScript functions from an ActiveX Pin
John R. Shaw8-Jan-04 4:16
John R. Shaw8-Jan-04 4:16 
GeneralMy silly build error... Pin
bitpusher7-Jan-04 12:33
bitpusher7-Jan-04 12:33 
Hello,

Just after adding a new class CDailyListView based on the CListView class, I get the following errors... this one has me stumped, but I'm sure it's some simple and stupid solution. I've tried rebuilding all files to no avail. Another working program I have doesn't have any #includes at the top (to find the CListView class in MFC). Thanks! JennyP

<br />
DailyListView.cpp<br />
c:\documents and settings\mahafjp\my documents\programming\goals1\dailylistview.h(14) : error C2504: 'CListView' : base class undefined<br />
c:\documents and settings\mahafjp\my documents\programming\goals1\dailylistview.cpp(17) : error C2440: 'return' : cannot convert from 'class CDailyListView *' to 'class CObject *'<br />
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br />
c:\documents and settings\mahafjp\my documents\programming\goals1\dailylistview.cpp(17) : error C2653: 'CListView' : is not a class or namespace name.<br />

etc....


Here's the code:

<br />
#if _MSC_VER > 1000<br />
#pragma once<br />
#endif // _MSC_VER > 1000<br />
// DailyListView.h : header file<br />
//<br />
<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CDailyListView view<br />
<br />
class CDailyListView : public CListView<br />
{<br />
protected:<br />
	CDailyListView();           // protected constructor used by dynamic creation<br />
	DECLARE_DYNCREATE(CDailyListView)<br />
<br />
// Attributes<br />
public:<br />
<br />
// Operations<br />
public:<br />
<br />

etc.....
GeneralRe: My silly build error... Pin
Wes Aday7-Jan-04 12:56
professionalWes Aday7-Jan-04 12:56 
GeneralRe: My silly build error... Pin
John R. Shaw7-Jan-04 13:06
John R. Shaw7-Jan-04 13:06 
GeneralRe: My silly build error... Pin
bitpusher7-Jan-04 13:26
bitpusher7-Jan-04 13:26 
GeneralBest way to display a configuration dialog Pin
shultas7-Jan-04 12:05
shultas7-Jan-04 12:05 
GeneralRe: Best way to display a configuration dialog - some more detail Pin
shultas7-Jan-04 12:11
shultas7-Jan-04 12:11 
GeneralRe: Best way to display a configuration dialog - some more detail Pin
John R. Shaw7-Jan-04 13:29
John R. Shaw7-Jan-04 13:29 
GeneralRe: Best way to display a configuration dialog Pin
Christian Graus7-Jan-04 12:25
protectorChristian Graus7-Jan-04 12:25 
GeneralExtended MAPI GUID declaration problem Pin
Adam Gritt7-Jan-04 10:55
Adam Gritt7-Jan-04 10:55 
GeneralRe: Extended MAPI GUID declaration problem Pin
nightcoder7-Jan-04 12:02
nightcoder7-Jan-04 12:02 
GeneralRe: Extended MAPI GUID declaration problem Pin
Adam Gritt7-Jan-04 12:10
Adam Gritt7-Jan-04 12:10 
GeneralRe: Extended MAPI GUID declaration problem Pin
Bo Hunter7-Jan-04 12:15
Bo Hunter7-Jan-04 12:15 
GeneralRe: Extended MAPI GUID declaration problem Pin
Adam Gritt7-Jan-04 12:22
Adam Gritt7-Jan-04 12:22 
QuestionHow to draw 2D Shapes with VC++ in DOS ? Pin
Eldalie7-Jan-04 10:32
Eldalie7-Jan-04 10:32 
AnswerRe: How to draw 2D Shapes with VC++ in DOS ? Pin
Jeremy Falcon7-Jan-04 11:34
professionalJeremy Falcon7-Jan-04 11:34 
GeneralRe: How to draw 2D Shapes with VC++ in DOS ? Pin
Eldalie8-Jan-04 8:00
Eldalie8-Jan-04 8:00 
GeneralWhat's up with Rich Edit control Pin
Anonymous7-Jan-04 9:20
Anonymous7-Jan-04 9:20 
GeneralRe: What's up with Rich Edit control Pin
David Crow7-Jan-04 9:46
David Crow7-Jan-04 9:46 

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.