🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #729

Assigning eventhandlers to TWebControl

#729
From: Hans Galema
Date: Wed, 01 Nov 2006 09:52
18 lines
1557 bytes
In bcb5 I could assign an eventhandler (created with the IDE) to
TCppWebBrowser like:

  CppWebBrowser1->OnDocumentComplete = CppWebBrowser1DocumentComplete;

Now with Turbo C++ I have to use TWebBrowser and tried the same:

   WebBrowser1->OnDocumentComplete = WebBrowser1DocumentComplete;

This is giving me following compiler error:
[C++ Error] UploadFlvFrame1.cpp(1045): E2034 Cannot convert
'void (_fastcall * (_closure )(TObject *,const IDispatch *,OleVariant &))
                               (TObject *,const IDispatch *,OleVariant &)'
to 'TWebBrowserDocumentComplete'

I do not understand this typedef so who can shed a light?

Hans.
Technical Details
Message-ID: <45486e95@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,8607198c852a630,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 01 Nov 2006 10:52:01 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Assigning eventhandlers to TWebControl
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <45486e95@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1162374805 145.98.201.248 (1 Nov 2006 01:53:25 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail