10 messages in com.googlegroups.google-desktop-developerRe: Delphi Plugin problems
FromSent OnAttachments
TOZ26 Mar 2005 19:41 
TOZ27 Mar 2005 07:41 
Vilen27 Mar 2005 22:27 
TOZ29 Mar 2005 02:48 
Vilen29 Mar 2005 13:08 
TOZ29 Mar 2005 14:45 
TOZ29 Mar 2005 16:18 
ponta30 Mar 2005 16:52 
Vilen30 Mar 2005 16:58 
TOZ31 Mar 2005 14:07 
Subject:Re: Delphi Plugin problems
From:TOZ (toz_@hotmail.com)
Date:03/27/2005 07:41:08 AM
List:com.googlegroups.google-desktop-developer

ve still trying to work on the plugin but i cant get it to work properly it seems to crash on any error that GDS sends back to it like if the user cancels the plugin register, its already registers, unregister it if its not registered, the extention is already registered (or any extention), this is the code im using:

var GDSRegister : TGoogleDesktopSearchRegister; GDS : TGoogleDesktopSearch; IGDS : IGoogleDesktopSearchComponentRegistration; vdesc : OLEVariant; ext : Variant; GUID : string;

Guid := '{AF5D9CAE-4612-4B81-AA81-2426EB6008D3}';

vdesc := VarArrayCreate( [0, 5], varVariant ); vdesc[0] := 'Title'; vdesc[1] := 'test'; vdesc[2] := 'Description'; vdesc[3] := 'test'; vdesc[4] := 'Icon'; vdesc[5] := 'no icon';

GDSRegister := TGoogleDesktopSearchRegister.Create(GDSRegister);

CoInitialize(nil);

GDSRegister.RegisterComponent(Guid,vdesc);

IGDS.RegisterExtension('pla');

I cant seem to find any fault with it so if anyone with can please tell me

Thanks again Chris Fuller