Click here to Skip to main content
15,918,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7910-Jul-06 21:43
im7910-Jul-06 21:43 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay10-Jul-06 22:55
Justin Tay10-Jul-06 22:55 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7910-Jul-06 23:12
im7910-Jul-06 23:12 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay10-Jul-06 23:37
Justin Tay10-Jul-06 23:37 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7911-Jul-06 1:16
im7911-Jul-06 1:16 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
im7930-Mar-08 13:06
im7930-Mar-08 13:06 
GeneralRe: Creating a Bitmap from a Framegrabber Image Pin
Justin Tay1-Apr-08 4:09
Justin Tay1-Apr-08 4:09 
QuestionWhat is wrong with this class - C2248 error Pin
charlieg7-Jul-06 3:24
charlieg7-Jul-06 3:24 
I have two very simple classes as shown below. In my application code, I want to test the
condition of the object - is it valid? But, VC++ tells me :
"error C2248: 'IsValid' : cannot access public member declared in class 'CBaseFile'"

Why? Why? For goodness' sake, why? Is it not declared public? It looks like it, it even tells
me it is public. What obvious goof don't I see?

{
// app code snippet:
CSpecialFile *pSpecialFile = new CSpecialFile("a filename");

if (!pSpecialFile->IsValid()) AfxMessageBox("Oh no!!! Mr. Bill...");
}


class CBaseFile
{
public:
CBaseFile(CString sFilename);
virtual ~CBaseFile();
bool IsValid();

private:
bool m_bIsValid; // true if no problems encountered;
};

Then I inherit from it...

class CSpecialFile: CBaseFile
{
public:
CSpecialFile(CString sFilename);
virtual ~CSpecialFile();

// more methods specific to special file object go here....
};


Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.

My son's PDA is an M249 SAW.
AnswerRe: What is wrong with this class - C2248 error Pin
Taka Muraoka7-Jul-06 3:29
Taka Muraoka7-Jul-06 3:29 
GeneralRe: What is wrong with this class - C2248 error Pin
charlieg7-Jul-06 3:39
charlieg7-Jul-06 3:39 
AnswerRe: What is wrong with this class - C2248 error Pin
Chris Losinger7-Jul-06 3:32
professionalChris Losinger7-Jul-06 3:32 
Questionusing C in VC express Pin
giddy_guitarist7-Jul-06 3:23
giddy_guitarist7-Jul-06 3:23 
AnswerRe: using C in VC express Pin
Chris Losinger7-Jul-06 3:27
professionalChris Losinger7-Jul-06 3:27 
AnswerRe: using C in VC express Pin
Zac Howland7-Jul-06 3:52
Zac Howland7-Jul-06 3:52 
GeneralRe: using C in VC express Pin
giddy_guitarist31-Mar-07 5:23
giddy_guitarist31-Mar-07 5:23 
QuestionStatic method, non-static variable Pin
Daniel Kanev7-Jul-06 2:45
Daniel Kanev7-Jul-06 2:45 
AnswerRe: Static method, non-static variable Pin
RChin7-Jul-06 3:11
RChin7-Jul-06 3:11 
AnswerRe: Static method, non-static variable Pin
Zac Howland7-Jul-06 4:01
Zac Howland7-Jul-06 4:01 
Questionoutlook Pin
pathakr7-Jul-06 2:44
pathakr7-Jul-06 2:44 
AnswerRe: outlook Pin
David Crow7-Jul-06 2:46
David Crow7-Jul-06 2:46 
Questionall urls Pin
yang__lee7-Jul-06 2:22
yang__lee7-Jul-06 2:22 
AnswerRe: all urls Pin
David Crow7-Jul-06 2:43
David Crow7-Jul-06 2:43 
AnswerRe: all urls Pin
Hamid_RT7-Jul-06 2:55
Hamid_RT7-Jul-06 2:55 
Questionto make a phone Pin
yogendra kaushik7-Jul-06 2:19
yogendra kaushik7-Jul-06 2:19 
AnswerRe: to make a phone Pin
Amit Agarrwal7-Jul-06 2:29
Amit Agarrwal7-Jul-06 2:29 

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.