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

C / C++ / MFC

 
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 
QuestionHow can fetch Excel File Password by using excel automation? Pin
Le@rner8-May-10 2:06
Le@rner8-May-10 2:06 
AnswerRe: How can fetch Excel File Password by using excel automation? Pin
Stuart Dootson8-May-10 3:28
professionalStuart Dootson8-May-10 3:28 
GeneralRe: How can fetch Excel File Password by using excel automation? Pin
Le@rner9-May-10 18:10
Le@rner9-May-10 18:10 
QuestionMouse over button Pin
Pryabu7-May-10 23:55
Pryabu7-May-10 23:55 
AnswerRe: Mouse over button Pin
Chris Losinger8-May-10 4:13
professionalChris Losinger8-May-10 4:13 
GeneralRe: Mouse over button Pin
Pryabu8-May-10 19:07
Pryabu8-May-10 19:07 
Question$(ProgramFiles) Pin
Chesnokov Yuriy7-May-10 22:30
professionalChesnokov Yuriy7-May-10 22:30 
AnswerRe: $(ProgramFiles) Pin
wangningyu7-May-10 22:44
wangningyu7-May-10 22:44 
GeneralRe: $(ProgramFiles) Pin
Chesnokov Yuriy7-May-10 23:08
professionalChesnokov Yuriy7-May-10 23:08 
GeneralRe: $(ProgramFiles) Pin
David Crow10-May-10 4:24
David Crow10-May-10 4:24 
AnswerRe: $(ProgramFiles) Pin
Richard MacCutchan7-May-10 22:48
mveRichard MacCutchan7-May-10 22:48 

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.