Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHGetFolderLocation() function gives compile time error. Pin
David Crow21-Nov-06 2:59
David Crow21-Nov-06 2:59 
AnswerRe: SHGetFolderLocation() function gives compile time error. Pin
Scott Holt21-Nov-06 7:07
Scott Holt21-Nov-06 7:07 
AnswerRe: SHGetFolderLocation() function gives compile time error. Pin
PJ Arends18-Nov-06 0:00
professionalPJ Arends18-Nov-06 0:00 
QuestionWireless Transfer Pin
priyeshtinku17-Nov-06 20:20
priyeshtinku17-Nov-06 20:20 
AnswerRe: Wireless Transfer Pin
Waldermort17-Nov-06 20:19
Waldermort17-Nov-06 20:19 
QuestionRe: Wireless Transfer Pin
Rajesh R Subramanian17-Nov-06 20:33
professionalRajesh R Subramanian17-Nov-06 20:33 
Questiondelete Pin
Waldermort17-Nov-06 20:13
Waldermort17-Nov-06 20:13 
AnswerRe: delete [modified] Pin
Mark Salsbery18-Nov-06 6:51
Mark Salsbery18-Nov-06 6:51 
WalderMort wrote:
My bug was that I called delete on this pointer outside of the class


That goes against one of the benefits of C++ - encapsulation. I guess in theory you shouldn't
have been able to delete the pointer from outside the class. In practice (real life) it's
not always possible or practical to write classes that tight.
Bare minimum. IMO, class member variables should be handled in class member methods ONLY. If a
member can/should be freed while the object still exists then it should be done through a class
method. As always, this class method should do whatever it has to to mark the member as freed
to prevent misuse later (i.e. set to NULL).

I still am interested in seeing your skin app! Smile | :)

Mark



-- modified at 13:17 Saturday 18th November, 2006
AnswerRe: delete Pin
CPallini20-Nov-06 4:20
mveCPallini20-Nov-06 4:20 
Questionhow to get editctrl text from a combobox Pin
Nagaraju_Focus17-Nov-06 19:35
Nagaraju_Focus17-Nov-06 19:35 
AnswerRe: how to get editctrl text from a combobox Pin
Hamid_RT17-Nov-06 19:51
Hamid_RT17-Nov-06 19:51 
AnswerRe: how to get editctrl text from a combobox Pin
Mila02517-Nov-06 22:21
Mila02517-Nov-06 22:21 
QuestionRe: how to get editctrl text from a combobox Pin
David Crow20-Nov-06 3:28
David Crow20-Nov-06 3:28 
QuestionHow can we find out given string is alphabet or numaric Pin
johnalek17-Nov-06 19:23
johnalek17-Nov-06 19:23 
AnswerRe: How can we find out given string is alphabet or numaric Pin
Hamid_RT17-Nov-06 19:51
Hamid_RT17-Nov-06 19:51 
AnswerRe: How can we find out given string is alphabet or numaric Pin
ThatsAlok18-Nov-06 1:30
ThatsAlok18-Nov-06 1:30 
AnswerRe: How can we find out given string is alphabet or numaric Pin
David Crow20-Nov-06 3:29
David Crow20-Nov-06 3:29 
QuestionConversion from unsigned char * to float Pin
narayanagvs17-Nov-06 18:37
narayanagvs17-Nov-06 18:37 
AnswerRe: Conversion from unsigned char * to float Pin
Mark Salsbery18-Nov-06 6:42
Mark Salsbery18-Nov-06 6:42 
QuestionProblem of copying and pasting on SDI application Pin
raycadarena17-Nov-06 14:32
raycadarena17-Nov-06 14:32 
AnswerRe: Problem of copying and pasting on SDI application Pin
David Crow20-Nov-06 3:37
David Crow20-Nov-06 3:37 
QuestionMsvcr80d.dll Pin
LiYS17-Nov-06 14:11
LiYS17-Nov-06 14:11 
AnswerRe: Msvcr80d.dll Pin
PJ Arends17-Nov-06 17:47
professionalPJ Arends17-Nov-06 17:47 
GeneralRe: Msvcr80d.dll Pin
LiYS17-Nov-06 21:01
LiYS17-Nov-06 21:01 
GeneralRe: Msvcr80d.dll Pin
PJ Arends17-Nov-06 23:50
professionalPJ Arends17-Nov-06 23:50 

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.