bsalsa - Delphi tips, tricks, code snippets,Samples Component Search Engine.

The current search engine database includes about 5000 Delphi web sites and growing...

By pressing the button, you can add the Search engine to your iGoogle. Add to Google


Go Back   EmbeddedWB - bsalsa forum > Toolbars, Bars, BHO and so on > GoogleBar and other bars
Register FAQDonate Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 05-20-2006, 11:59 AM   #1
cch
Junior Member
 
Join Date: May 2006
Posts: 28
How can we use say google bar ?

How can we use say google bar etcÂÂÂÂ* with the Browser built with TEmbeddedWB ?
cch is offline   Reply With Quote
Old 05-21-2006, 07:16 AM   #2
bsalsa
Administrator
 
bsalsa's Avatar
 
Join Date: Jan 1970
Posts: 1,303
Re: How can we use say google bar ?

The same as with TWebbrowser.
Google for results.
You can also read the links in http://www.bsalsa.com/ie_tools.html
Regards
bsalsa is offline   Reply With Quote
Old 05-21-2006, 09:34 AM   #3
smot
Main Developer
 
smot's Avatar
 
Join Date: May 2006
Posts: 913
Re: How can we use say google bar ?

hi,

I've created an example how to use the Google Bar in your Delphi application.
However, the code is not yet perfect and you may get AVs..
Maybe someone can fix it?
Attached Files
File Type: zip Google_Bandhost.zip (3.4 KB, 27 views)

Last edited by smot; 11-02-2008 at 04:11 PM.
smot is offline   Reply With Quote
Old 05-21-2006, 09:54 AM   #4
cch
Junior Member
 
Join Date: May 2006
Posts: 28
Re: How can we use say google bar ?

Hi

Using D5, I could not compile your project with the following errior messages..

[Error] uBandHost.pas(80): Undeclared identifier: 'IInterface'
[Error] uBandHost.pas(81): Declaration of 'OnFocusChangeIS' differs from previous declaration
[Fatal Error] Unit1.pas(39): Could not compile used unit 'uBandHost.pas'

What units must I add ?
cch is offline   Reply With Quote
Old 05-21-2006, 11:52 AM   #5
smot
Main Developer
 
smot's Avatar
 
Join Date: May 2006
Posts: 913
Re: How can we use say google bar ?

IInterface is like TObject -- it is the base all descendants descend from. IUnknown and IInterface are really the same thing (IUnknown = IInterface, but by using IUnknown you are implying that your interface has something to do with Microsoft's COM technology. On the other hand, working with IInterface makes no such implication. IInterface is a regular, cross-platform interface.

IInterface is new in Delphi 6. In Delphi 5 you must use IUnknown.

Change
Code:
function TBandHost.OnFocusChangeIS(punkObj: IInterface;
 fSetFocus: BOOL): HResult;
to

Code:
function TBandHost.OnFocusChangeIS(punkObj: IUnknown;
 fSetFocus: BOOL): HResult;

smot is offline   Reply With Quote
Old 05-21-2006, 01:27 PM   #6
cch
Junior Member
 
Join Date: May 2006
Posts: 28
Re: How can we use say google bar ?

I recompiled my browser project in D7 and managed to create and show the GoogleBar.

Problem is that whenever the app is closed, I get an AV... Any clues ?
cch is offline   Reply With Quote
Old 05-21-2006, 10:06 PM   #7
smot
Main Developer
 
smot's Avatar
 
Join Date: May 2006
Posts: 913
Re: How can we use say google bar ?

Quote:
Originally Posted by cch
I recompiled my browser project in D7 and managed to create and show the GoogleBar.

Problem is that whenever the app is closed, I get an AV... Any clues ?
Change the code as follows:

Code:
procedure TForm1.Button3Click(Sender: TObject); 
begin 
 obj := nil; 
end; 

procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction); 
begin 
 BandHostIntf := nil; 
end;
smot is offline   Reply With Quote
Old 07-31-2010, 09:16 AM   #8
bradhodgy
Junior Member
 
Join Date: Jul 2010
Posts: 4
Let's redefine the question. What can be the possible problems (not what is there but what can be there) of using google toolbar? Once we define it then we will analyze how big is the risk and will let the member decide whether they want to avoid the risk (if at all any) or not.
__________________
[
bradhodgy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test whether Google Bar is already intstalled in IE ? cch GoogleBar and other bars 5 06-08-2010 09:00 PM


All times are GMT +3. The time now is 10:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
bsalsa@gmail.com