Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAfx.h / Win32 Pin
Fareed Rizkalla8-May-10 11:34
Fareed Rizkalla8-May-10 11:34 
AnswerRe: Afx.h / Win32 Pin
Garth J Lancaster8-May-10 13:25
professionalGarth J Lancaster8-May-10 13:25 
GeneralRe: Afx.h / Win32 Pin
Fareed Rizkalla8-May-10 16:15
Fareed Rizkalla8-May-10 16:15 
AnswerRe: Afx.h / Win32 Pin
Stephen Hewitt8-May-10 20:59
Stephen Hewitt8-May-10 20:59 
QuestionLocalization for languages using XML Pin
punyah20108-May-10 9:02
punyah20108-May-10 9:02 
AnswerRe: Localization for languages using XML Pin
CPallini8-May-10 9:53
mveCPallini8-May-10 9:53 
GeneralRe: Localization for languages using XML Pin
punyah20108-May-10 10:34
punyah20108-May-10 10:34 
GeneralRe: Localization for languages using XML Pin
CPallini8-May-10 11:17
mveCPallini8-May-10 11:17 
AnswerRe: Localization for languages using XML Pin
Iain Clarke, Warrior Programmer8-May-10 22:24
Iain Clarke, Warrior Programmer8-May-10 22:24 
QuestionRegGetValue / Win32 Pin
Fareed Rizkalla8-May-10 8:25
Fareed Rizkalla8-May-10 8:25 
AnswerRe: RegGetValue / Win32 Pin
Chris Losinger8-May-10 8:50
professionalChris Losinger8-May-10 8:50 
GeneralRe: RegGetValue / Win32 Pin
Fareed Rizkalla8-May-10 8:59
Fareed Rizkalla8-May-10 8:59 
GeneralRe: RegGetValue / Win32 Pin
Kelly Herald8-May-10 9:13
Kelly Herald8-May-10 9:13 
QuestionC++ Pointer Help [Solved] Pin
Tom Moore8-May-10 2:08
Tom Moore8-May-10 2:08 
AnswerRe: C++ Pointer Help Pin
Stuart Dootson8-May-10 3:27
professionalStuart Dootson8-May-10 3:27 
GeneralRe: C++ Pointer Help Pin
Tom Moore8-May-10 3:37
Tom Moore8-May-10 3:37 
GeneralRe: C++ Pointer Help Pin
Stuart Dootson8-May-10 3:43
professionalStuart Dootson8-May-10 3:43 
GeneralRe: C++ Pointer Help Pin
Tom Moore8-May-10 3:54
Tom Moore8-May-10 3:54 
GeneralRe: C++ Pointer Help Pin
molesworth8-May-10 10:33
molesworth8-May-10 10:33 
Tom Moore wrote:
Where as if you did such as RobotSpeak(const Robot*& const robot). You could delete the object in the procedure, and if the calling program tried to do any thing to object, it would fail and leak memory or worse.


That's a very dangerous thing to do, and certainly not advisable in any API design. While you can create any level of parameter referencing you want (pointer to pointer to pointer to ...) you really have to consider why you would want to do such a thing, and what side effects you might be leaving yourself open to if you do.

Even if you explicitly state things like this when describing your API, users will always do incorrect things with it. Believe me, I've written what I thought were bomb-proof systems, only to find they weren't Smile | :)
Days spent at sea are not deducted from one's alloted span - Phoenician proverb

GeneralRe: C++ Pointer Help Pin
Tom Moore8-May-10 12:22
Tom Moore8-May-10 12:22 
GeneralRe: C++ Pointer Help Pin
Stuart Dootson9-May-10 21:34
professionalStuart Dootson9-May-10 21:34 
GeneralRe: C++ Pointer Help Pin
Tom Moore10-May-10 2:12
Tom Moore10-May-10 2:12 
AnswerRe: C++ Pointer Help Pin
CPallini8-May-10 3:31
mveCPallini8-May-10 3:31 
AnswerRe: C++ Pointer Help [Solved] Pin
Tim Craig8-May-10 17:04
Tim Craig8-May-10 17:04 
GeneralRe: C++ Pointer Help [Solved] Pin
Tom Moore10-May-10 2:10
Tom Moore10-May-10 2:10 

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.