Article View: borland.public.cppbuilder.nativeapi
Article #10737Re: VC to BCB
From: Greg Stantin
Date: Tue, 23 Mar 2004 03:55
Date: Tue, 23 Mar 2004 03:55
37 lines
2016 bytes
2016 bytes
Okay, let me try again to compile it and post the errors.
I think my problem is this line:
IUnknown* lpUnk = m_pSite->GetObjectUnknown();
class CSite : public IUnknown
{
// helper functions
LPUNKNOWN GetObjectUnknown( void ){ return m_pObj; }
m_pSite is really hard to track down, its embedded into so many
classes that call other classes. Its not just a standard variable
that
you can copy and paste.
For example, this line has the handle to the webbrowser that you
had given me one time.
_di_IDispatch Doc = WebBrowser->Document;
If i can get the same for the above, the code will probably work
Even on the microsoft site, i see code like this.
HRESULT hr = S_OK;
IUnknown* lpUnk = NULL;
LPOLECOMMANDTARGET pCommandTarget = NULL;
lpUnk = m_pSite->GetObjectUnknown();
hr = lpUnk->QueryInterface(IID_IOleCommandTarget,
(void**) &pCommandTarget);
if ( SUCCEEDED(hr) && pCommandTarget != NULL )
{
but, still nothing that references what the m_pSite is at all.
Technical Details
Message-ID:
<405fb50a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<405f8871$1@newsgroups.borland.com> <405f9896@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2141ad895f4e297f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-22 20:09:35 PST Reply-To: "Greg Stantin" <gstantin@stantonassoc.com> From: "Greg Stantin" <gstantin@stantonassoc.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <405f8871$1@newsgroups.borland.com> <405f9896@newsgroups.borland.com> Subject: Re: VC to BCB Date: Mon, 22 Mar 2004 21:55:12 -0600 Lines: 39 Organization: Stantin Assoc. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 64.219.221.3 Message-ID: <405fb50a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080014090 64.219.221.3 (22 Mar 2004 19:54:50 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail