View Single Post
  #1  
Old 02-12-2015, 07:18
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 596
Thanks: 599
Thanked 656 Times in 233 Posts
Carldric Clement is on a distinguished road
DLL: All In One Function & Procedure

All In One Function & Procedure

Description
Quote:
This is really awesome if you try this was no problem with
delphi
Code for Delphi
Code:
const
  LibraryAioFP = 'Aio_FP.dll';

procedure Website(URL: string); stdcall; external LibraryAioFP;
procedure Exec(sExe, sCommandLine: string; wait: Boolean); stdcall; external LibraryAioFP;
function SelDir: string; stdcall; external LibraryAioFP;
function IniRead(Filez, A, B, C: string): string; stdcall; external LibraryAioFP;
function IniCreate(Filez, A, B, C: string): string; stdcall; external LibraryAioFP;
procedure B_PlayMusic(Files: string); stdcall; external LibraryAioFP;
procedure B_PauseMusic; stdcall; external LibraryAioFP;
procedure B_ResumeMusic; stdcall; external LibraryAioFP;
procedure B_StopMusic; stdcall; external LibraryAioFP;
Code for Inno Setup:
Code:
procedure Website(URL: string); external 'Website@files:{tmp}\Aio_FP.dll stdcall delayload';
procedure Exec(sExe, sCommandLine: string; wait: Boolean); external 'Exec@files:{tmp}\Aio_FP.dll stdcall delayload';
function SelDir: string; external 'Exec@files:{tmp}\Aio_FP.dll stdcall delayload';
function IniRead(Filez, A, B, C: string): string; external 'IniRead@files:{tmp}\Aio_FP.dll stdcall delayload';
function IniCreate(Filez, A, B, C: string): string; external 'IniCreate@files:{tmp}\Aio_FP.dll stdcall delayload';
procedure B_PlayMusic(Files: string); external 'B_PlayMusic@files:{tmp}\Aio_FP.dll stdcall delayload';
procedure B_PauseMusic; external 'B_PauseMusic@files:{tmp}\Aio_FP.dll stdcall delayload';
procedure B_ResumeMusic; external 'B_ResumeMusic@files:{tmp}\Aio_FP.dll stdcall delayload';
procedure B_StopMusic; external 'B_StopMusic@files:{tmp}\Aio_FP.dll stdcall delayload';

function InitializeSetup(): Boolean;
begin
    ExtractTemporaryFile('Aio_FP.dll');
    ExtractTemporaryFile('Bass.dll');

    Result:= True;
end;

Last edited by Carldric Clement; 07-04-2026 at 13:25.
Reply With Quote
The Following 3 Users Say Thank You to Carldric Clement For This Useful Post:
Andrey167 (02-12-2015), JRD! (02-12-2015), Simorq (02-12-2015)
Sponsored Links