Click here to Skip to main content
16,008,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Books about MFC Pin
Ben Burnett11-Jul-01 9:52
Ben Burnett11-Jul-01 9:52 
GeneralRe: Books about MFC Pin
Michael Dunn11-Jul-01 9:57
sitebuilderMichael Dunn11-Jul-01 9:57 
GeneralRe: Books about MFC Pin
Christian Graus11-Jul-01 13:11
protectorChristian Graus11-Jul-01 13:11 
GeneralHiding the caption bar's close box of a wizard. Pin
CMFC6.0VS.NETUser11-Jul-01 9:30
CMFC6.0VS.NETUser11-Jul-01 9:30 
GeneralRe: Hiding the caption bar's close box of a wizard. Pin
Bret Faller11-Jul-01 13:44
Bret Faller11-Jul-01 13:44 
GeneralRe: Hiding the caption bar's close box of a wizard. Pin
CMFC6.0VS.NETUser12-Jul-01 4:32
CMFC6.0VS.NETUser12-Jul-01 4:32 
GeneralRe: Hiding the caption bar's close box of a wizard. Pin
CMFC6.0VS.NETUser12-Jul-01 7:52
CMFC6.0VS.NETUser12-Jul-01 7:52 
Generalsimple polymorphism error Pin
Jake Palmer11-Jul-01 9:21
Jake Palmer11-Jul-01 9:21 
I'm trying to write a function that performs some pretty natural polymorphism. It takes as a parameter a pointer to a base class object, then sets it to a new object of the subclass. In code:

void DoMorph(CBaseClass *foo)
{
foo = NULL;
foo = new CSubclass();
}
Is there an obvious reason this wouldn't compile, if CSubclass is derived from CBaseClass? I get this unexpected error:

'type cast' : conversion from 'class CSubclass *' to 'class CBaseClass *' exists, but is inaccessible.

thanks in advance,
Jake
GeneralRe: simple polymorphism error Pin
Michael Dunn11-Jul-01 9:36
sitebuilderMichael Dunn11-Jul-01 9:36 
GeneralRe: simple polymorphism error Pin
Jake Palmer11-Jul-01 11:01
Jake Palmer11-Jul-01 11:01 
GeneralATL (BSTR) to VB Pin
Dan Madden11-Jul-01 9:19
Dan Madden11-Jul-01 9:19 
GeneralRe: ATL (BSTR) to VB Pin
Michael Dunn11-Jul-01 9:32
sitebuilderMichael Dunn11-Jul-01 9:32 
GeneralRe: ATL (BSTR) to VB Pin
Dan Madden11-Jul-01 10:17
Dan Madden11-Jul-01 10:17 
GeneralCapturing DOS output Pin
11-Jul-01 9:09
suss11-Jul-01 9:09 
GeneralRe: Capturing DOS output Pin
Ben Burnett11-Jul-01 10:19
Ben Burnett11-Jul-01 10:19 
GeneralRegistering file types that aren't doc/view types Pin
11-Jul-01 7:53
suss11-Jul-01 7:53 
GeneralWindows 2000 using WTL Pin
Lilian Chan-Grant11-Jul-01 6:58
Lilian Chan-Grant11-Jul-01 6:58 
GeneralRe: Windows 2000 using WTL Pin
Michael Dunn11-Jul-01 7:20
sitebuilderMichael Dunn11-Jul-01 7:20 
GeneralRe: Windows 2000 using WTL Pin
Lilian Chan-Grant11-Jul-01 8:15
Lilian Chan-Grant11-Jul-01 8:15 
GeneralCString parsing Pin
RobJones11-Jul-01 6:42
RobJones11-Jul-01 6:42 
GeneralRe: CString parsing Pin
Carlos Antollini11-Jul-01 6:57
Carlos Antollini11-Jul-01 6:57 
GeneralRe: CString parsing Pin
RobJones11-Jul-01 7:04
RobJones11-Jul-01 7:04 
GeneralRe: CString parsing Pin
Carlos Antollini11-Jul-01 7:16
Carlos Antollini11-Jul-01 7:16 
GeneralRe: CString parsing Pin
RobJones11-Jul-01 7:26
RobJones11-Jul-01 7:26 
GeneralRe: CString parsing Pin
#realJSOP12-Jul-01 3:05
professional#realJSOP12-Jul-01 3: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.