Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Turn of Ellipsis in ListView Pin
Steve S16-Mar-04 23:58
Steve S16-Mar-04 23:58 
GeneralRe: Turn of Ellipsis in ListView Pin
Rightoguy17-Mar-04 4:38
Rightoguy17-Mar-04 4:38 
Generalpublic member not working Pin
BlackDice16-Mar-04 10:22
BlackDice16-Mar-04 10:22 
GeneralRe: public member not working Pin
David Crow16-Mar-04 10:45
David Crow16-Mar-04 10:45 
GeneralRe: public member not working Pin
BlackDice16-Mar-04 10:50
BlackDice16-Mar-04 10:50 
GeneralC++ pointer question Pin
patnsnaudy16-Mar-04 10:20
patnsnaudy16-Mar-04 10:20 
GeneralRe: C++ pointer question Pin
Joe Woodbury16-Mar-04 10:55
professionalJoe Woodbury16-Mar-04 10:55 
GeneralRe: C++ pointer question Pin
patnsnaudy16-Mar-04 11:11
patnsnaudy16-Mar-04 11:11 
Yeah but if you create

foo *a = new foo();
foo *b = new foo();

a.openWindow();
b.openWindow(); // This should close a.
delete b;       // ptr in openWindow() still points 
                //  to the space b used to occupy.
a.openWindow(); // Trys to close b, but b no longer exists (ERROR).


I know I could create a member and set it to this in openWindow and NULL in closeWindow, but I do not want to have a member for this.

If you change the code to use a dynamic_cast and put a try-catch(...) around it this will work as is, but the powers that be don't like try-catch, so I'm not allowed to use it.
GeneralRe: C++ pointer question Pin
Christian Graus16-Mar-04 11:29
protectorChristian Graus16-Mar-04 11:29 
GeneralRe: C++ pointer question Pin
Ravi Bhavnani16-Mar-04 17:35
professionalRavi Bhavnani16-Mar-04 17:35 
GeneralRe: C++ pointer question Pin
TFrancis16-Mar-04 10:58
TFrancis16-Mar-04 10:58 
GeneralRe: C++ pointer question Pin
patnsnaudy16-Mar-04 11:02
patnsnaudy16-Mar-04 11:02 
GeneralRe: C++ pointer question Pin
David Crow17-Mar-04 3:03
David Crow17-Mar-04 3:03 
GeneralRe: C++ pointer question Pin
Christian Graus16-Mar-04 11:31
protectorChristian Graus16-Mar-04 11:31 
GeneralRe: C++ pointer question Pin
patnsnaudy16-Mar-04 12:55
patnsnaudy16-Mar-04 12:55 
GeneralRe: C++ pointer question Pin
Prakash Nadar16-Mar-04 14:55
Prakash Nadar16-Mar-04 14:55 
GeneralRe: C++ pointer question Pin
patnsnaudy17-Mar-04 3:56
patnsnaudy17-Mar-04 3:56 
GeneralRe: C++ pointer question Pin
Prakash Nadar17-Mar-04 16:45
Prakash Nadar17-Mar-04 16:45 
GeneralRe: C++ pointer question Pin
Ryan Binns16-Mar-04 17:10
Ryan Binns16-Mar-04 17:10 
GeneralI gave in (sln) Pin
patnsnaudy18-Mar-04 2:12
patnsnaudy18-Mar-04 2:12 
QuestionHow to TURN UNICODE ON. Pin
HAHAHA_NEXT16-Mar-04 10:19
HAHAHA_NEXT16-Mar-04 10:19 
AnswerRe: How to TURN UNICODE ON. Pin
David Crow16-Mar-04 10:34
David Crow16-Mar-04 10:34 
GeneralRe: How to TURN UNICODE ON. Pin
HAHAHA_NEXT16-Mar-04 10:39
HAHAHA_NEXT16-Mar-04 10:39 
GeneralRe: How to TURN UNICODE ON. Pin
David Crow16-Mar-04 10:46
David Crow16-Mar-04 10:46 
GeneralRe: How to TURN UNICODE ON. Pin
HAHAHA_NEXT16-Mar-04 10:52
HAHAHA_NEXT16-Mar-04 10:52 

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.