Click here to Skip to main content
15,904,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cannot save file. The file may be in use by another application. Pin
Nish Nishant13-Jan-02 6:25
sitebuilderNish Nishant13-Jan-02 6:25 
GeneralRe: Cannot save file. The file may be in use by another application. Pin
User 665813-Jan-02 8:42
User 665813-Jan-02 8:42 
GeneralRe: Cannot save file. The file may be in use by another application. Pin
Mike Nordell13-Jan-02 22:14
Mike Nordell13-Jan-02 22:14 
GeneralRe: Cannot save file. The file may be in use by another application. Pin
Not Active14-Jan-02 4:20
mentorNot Active14-Jan-02 4:20 
GeneralRe: Cannot save file. The file may be in use by another application. Pin
Pizzor200027-Oct-03 5:57
Pizzor200027-Oct-03 5:57 
GeneralCListCtrl Pin
Sonu Kapoor13-Jan-02 2:03
Sonu Kapoor13-Jan-02 2:03 
GeneralRe: CListCtrl Pin
Nish Nishant13-Jan-02 4:18
sitebuilderNish Nishant13-Jan-02 4:18 
QuestionWhat does that mean ( Seen in MDSN )??? Pin
Stephane Routelous12-Jan-02 17:42
Stephane Routelous12-Jan-02 17:42 
Hi,

I've seen that in the MSDN :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_cobject_class.3a_.accessing_run.2d.time_class_information.asp


void SomeFunction(void)
{
CObject* pMyObject = new CPerson;

if(pMyObject->IsKindOf( RUNTIME_CLASS( CPerson ) ) )
{
//if IsKindOf is true, then cast is all right
CPerson* pmyPerson = (CPerson*) pMyObject ;
...
delete pmyPerson;
}
...
delete [MyObject];
}

What are they doing here ?
I'm confused !
why delete pmyPerson here ?
What is this delete [MyObject] ?

Is that pseudo-code or what ?

Stephane

"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."

AnswerRe: What does that mean ( Seen in MDSN )??? Pin
Nish Nishant12-Jan-02 18:01
sitebuilderNish Nishant12-Jan-02 18:01 
AnswerRe: What does that mean ( Seen in MDSN )??? Pin
Michael Dunn12-Jan-02 19:46
sitebuilderMichael Dunn12-Jan-02 19:46 
QuestionHow to use CScrollView in MM_ISOTROPIC map mode? Pin
lxy12-Jan-02 15:45
lxy12-Jan-02 15:45 
GeneralChange CEdit rect height Pin
Jim Hewitt12-Jan-02 15:41
Jim Hewitt12-Jan-02 15:41 
GeneralRe: Change CEdit rect height Pin
l a u r e n12-Jan-02 21:16
l a u r e n12-Jan-02 21:16 
GeneralEditBox in ToolBar - Only numbers Pin
Jawache12-Jan-02 11:49
Jawache12-Jan-02 11:49 
GeneralRe: EditBox in ToolBar - Only numbers Pin
Christian Graus12-Jan-02 11:52
protectorChristian Graus12-Jan-02 11:52 
GeneralRe: EditBox in ToolBar - Only numbers Pin
Jawache12-Jan-02 12:11
Jawache12-Jan-02 12:11 
GeneralRe: EditBox in ToolBar - Only numbers Pin
Michael Dunn12-Jan-02 13:54
sitebuilderMichael Dunn12-Jan-02 13:54 
GeneralUnicode Pin
12-Jan-02 11:07
suss12-Jan-02 11:07 
GeneralRe: Unicode Pin
Christian Graus12-Jan-02 11:41
protectorChristian Graus12-Jan-02 11:41 
GeneralLots of easy COM questions!! Pin
12-Jan-02 11:03
suss12-Jan-02 11:03 
GeneralPopulating a CTreeCtrl when I open a new document Pin
Stephane Routelous12-Jan-02 10:57
Stephane Routelous12-Jan-02 10:57 
GeneralRe: Populating a CTreeCtrl when I open a new document Pin
Michael Dunn12-Jan-02 14:36
sitebuilderMichael Dunn12-Jan-02 14:36 
GeneralGUI question Pin
Djibril12-Jan-02 7:58
professionalDjibril12-Jan-02 7:58 
GeneralColorizing Edit Control using Win32 API Pin
olliman12-Jan-02 7:48
olliman12-Jan-02 7:48 
GeneralRe: Colorizing Edit Control using Win32 API Pin
Nish Nishant12-Jan-02 16:56
sitebuilderNish Nishant12-Jan-02 16:56 

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.