Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to convert a monochrome bitmap to color bitmap using VC++ Pin
haivh6-Aug-02 20:13
haivh6-Aug-02 20:13 
QuestionHow to write a funtion like ExtFloodFill Pin
haivh6-Aug-02 20:08
haivh6-Aug-02 20:08 
GeneralCProgressCtrl Color Pin
JennyP6-Aug-02 18:33
JennyP6-Aug-02 18:33 
GeneralRe: CProgressCtrl Color Pin
Shog96-Aug-02 19:42
sitebuilderShog96-Aug-02 19:42 
QuestionRTTI...? and MFC...? Pin
alex.barylski6-Aug-02 18:23
alex.barylski6-Aug-02 18:23 
AnswerRe: RTTI...? and MFC...? Pin
ttzzgg_807136-Aug-02 21:54
ttzzgg_807136-Aug-02 21:54 
GeneralRe: RTTI...? and MFC...? Pin
alex.barylski7-Aug-02 11:33
alex.barylski7-Aug-02 11:33 
AnswerRe: RTTI...? and MFC...? Pin
Tomasz Sowinski7-Aug-02 0:10
Tomasz Sowinski7-Aug-02 0:10 
Hockey wrote:
How is it possible to create an object without using MFC's CObject CreateObject()...???

Sure. Just use 'new CYourObject' or declare CYourObject as local/global variable. CreateObject stuff is needed, because framework needs to create objects of 'unknown' type. For example, if you have doc/view app, MFC creates CYourDoc and CYourView for you, but doesn't have full knowledge about these classes. You're just passing the RUNTIME_CLASS which, among other things, has the CreateObject method.

Hockey wrote:
I checked out the source code (MFC) and could only determine CreateObject returns a Function*...???

No, CRuntimeClass::CreateObject returns CObject *. There's also m_pfnCreateObject data member which has an address to function which is called by CreateObject.

Tomasz Sowinski -- http://www.shooltz.com

What is "scratch" and why can everything be made from it?

GeneralRe: RTTI...? and MFC...? Pin
alex.barylski7-Aug-02 11:30
alex.barylski7-Aug-02 11:30 
GeneralRe: RTTI...? and MFC...? Pin
Tomasz Sowinski7-Aug-02 11:37
Tomasz Sowinski7-Aug-02 11:37 
GeneralRe: RTTI...? and MFC...? Pin
alex.barylski7-Aug-02 12:20
alex.barylski7-Aug-02 12:20 
GeneralRe: RTTI...? and MFC...? Pin
Tomasz Sowinski7-Aug-02 12:38
Tomasz Sowinski7-Aug-02 12:38 
AnswerRe: RTTI...? and MFC...? Pin
Neville Franks7-Aug-02 0:39
Neville Franks7-Aug-02 0:39 
GeneralRe: RTTI...? and MFC...? Pin
alex.barylski7-Aug-02 11:37
alex.barylski7-Aug-02 11:37 
GeneralRe: RTTI...? and MFC...? Pin
Neville Franks11-Aug-02 11:36
Neville Franks11-Aug-02 11:36 
QuestionHow I write a wizard that have 4 window ? Pin
storein6-Aug-02 17:09
storein6-Aug-02 17:09 
AnswerRe: How I write a wizard that have 4 window ? Pin
Michael Dunn6-Aug-02 18:29
sitebuilderMichael Dunn6-Aug-02 18:29 
GeneralRe: How I write a wizard that have 4 window ? Pin
storein6-Aug-02 21:02
storein6-Aug-02 21:02 
GeneralC++.net question Pin
Zenix26-Aug-02 16:05
Zenix26-Aug-02 16:05 
Generalsendmessage help Pin
imran_rafique6-Aug-02 16:02
imran_rafique6-Aug-02 16:02 
GeneralRe: sendmessage help Pin
Peter Occil6-Aug-02 17:00
Peter Occil6-Aug-02 17:00 
Generalshortcut access to base class function/variable Pin
oRion6-Aug-02 16:00
oRion6-Aug-02 16:00 
GeneralRe: shortcut access to base class function/variable Pin
Anonymous6-Aug-02 23:24
Anonymous6-Aug-02 23:24 
GeneralRe: shortcut access to base class function/variable Pin
oRion7-Aug-02 2:43
oRion7-Aug-02 2:43 
GeneralFile copy (Backup/Restore) utility.Read it n u'll cum 2 know Pin
tushar bhatnagar6-Aug-02 13:18
tushar bhatnagar6-Aug-02 13:18 

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.