🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10738

Re: VC to BCB

#10738
From: Greg Stantin
Date: Tue, 23 Mar 2004 04:15
42 lines
2394 bytes
> > _di_IDispatch Doc = WebBrowser->Document;
> >
> > If i can get the same for the above, the code will probably work
>
> You just answered your own question.  So what *EXACTLY* is the
problem?
> What *EXACTLY* are you trying to accomplish in the first place?

That will not work for the DHTML edit control, believe me i already
tried it.
Apparently the code is very similar, but.......  this is what i get if
i use this code.


 [C++ Error] Unit1.cpp(511): E2316 'Document' is not a member of
'TDHTMLEdit'
   _di_IDispatch Doc = DHTMLEdit->Document;

    if(Doc)
    {
[C++ Error] Unit1.cpp(514): E2015 Ambiguity between 'IHTMLDocument2'
and 'Mshtml_tlb::IHTMLDocument2'
 TComInterface<IHTMLDocument2> HTMLDoc;

        Doc->QueryInterface(::IID_IHTMLDocument2, (LPVOID*)&HTMLDoc);
        if(HTMLDoc)
        {
            VARIANT vColor;
            VariantInit(&vColor);

            vColor.vt = VT_I4;
            TColorRef rgbV = ColorToRGB(clInfoBk);
//OptionsForm->BrowserBGCLabel->Color);
            vColor.lVal =
RGB(GetBValue(rgbV),GetGValue(rgbV),GetRValue(rgbV));

            HTMLDoc->put_bgColor(vColor);
            VariantClear(&vColor);
        }
    }

If i can get past those two, it will work.
Technical Details
Message-ID: <405fb9d6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <405f8871$1@newsgroups.borland.com> <405f9896@newsgroups.borland.com> <405fb50a@newsgroups.borland.com> <405fb77e$1@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:40:03 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> <405fb50a@newsgroups.borland.com> <405fb77e$1@newsgroups.borland.com>
Subject: Re: VC to BCB
Date: Mon, 22 Mar 2004 22:15:40 -0600
Lines: 44
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: <405fb9d6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080015318 64.219.221.3 (22 Mar 2004 20:15:18 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail