Article View: borland.public.cppbuilder.nativeapi
Article #8615Re: Registering Help Viewer
From: Remy Lebeau (TeamB)
Date: Fri, 08 Oct 2004 17:27
Date: Fri, 08 Oct 2004 17:27
27 lines
2058 bytes
2058 bytes
"3 Wishes" <3@wishes.com> wrote in message news:4166370b@newsgroups.borland.com... > iHelpManager = (_di_IHelpManager*) malloc(sizeof(_di_IHelpManager)); > _di_IHelpManager& iHelpManagerRef = *iHelpManager; I do not recommend that you do that at all. For one thing, malloc() will not call _di_IHelpManager's constructor, so the _di_IHelpManager instance will remain uninitialized and you will have undefined behavior when you try to use it. > WinHelpTester = (IWinHelpTester*) new THtmlWinHelpTester; Where is WinHelpTester declared? > I do not know however if there is a better academic method to do > this, and I think that I am just very lucky right now to have it > working. Do you have any better way to avoid the problem that > we notice before (inability for the compiler to make the difference > between the two versions of Release)? Again, there should not be any reason for the error to begin with, since there is a public Release(void) method inherited from IUnknown. Gambit
Technical Details
Message-ID:
<4166cdff@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4165b82e$2@newsgroups.borland.com> <4165c3bb$1@newsgroups.borland.com> <4165d4c5@newsgroups.borland.com> <4165d89f$1@newsgroups.borland.com> <4165da2a$1@newsgroups.borland.com> <4166370b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fa848f661129ced4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4165b82e$2@newsgroups.borland.com> <4165c3bb$1@newsgroups.borland.com> <4165d4c5@newsgroups.borland.com> <4165d89f$1@newsgroups.borland.com> <4165da2a$1@newsgroups.borland.com> <4166370b@newsgroups.borland.com> Subject: Re: Registering Help Viewer Date: Fri, 8 Oct 2004 10:27:30 -0700 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4166cdff@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097256447 68.69.17.41 (8 Oct 2004 10:27:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail