unit Unit1;
{$WARN SYMBOL_PLATFORM OFF}
interface
uses
ComObj, ActiveX,IniFiles,
SuperMarketYouMenu_TLB, StdVcl,windows,forms;
type
TbiosIEMenu1 = class(TAutoObject, IbiosIEMenu1)
protected
procedure AddUrl(const URL, Info: WideString); safecall;
{ Protected declarations }
end;
implementation
uses ComServ;
procedure TbiosIEMenu1.AddUrl(const URL, Info:WideString);
var
str1,str2,str3:string;
myif:Tinifile;
begin
str1:=URL;
str2:=Info;
myif:=Tinifile.create(extractfilepath(application.exename)+'temp.ini');
myif.writestring('tempstr','url',str1);
myif.writestring('tempstr','info',str2);
myif:=Tinifile.create('myapppath.ini');
str3:=myif.readstring('myapppath','path');
WinExec(pchar(str3),SW_SHOWNORMAL);
end;
initialization
TAutoObjectFactory.Create(ComServer, TbiosIEMenu1, Class_biosIEMenu1,
ciMultiInstance, tmApartment);
end.