Using Auron SMS Component in Delphi
To use the SMS Component objects in Delphi make sure the component has been installed on the server.
You can find working examples of how to use the Auron SMS Component in Delphi on github.
First, add a reference to the SMS Component objects:
- Go to Project->Import Type Library
- Select ‘Auron SMS Component Type Library’
- Click ‘Install’
- The project ‘dclusr.dpk’ will be opened. Click ‘Yes’
The following code shows how to declare, create and use one of the SMS Component objects:
program Project1;
{$APPTYPE CONSOLE}
' Use ActiveX, Windows and AXSMS_TLB
uses
SysUtils, ActiveX, Windows,
AXSMS_TLB;
var
objGsm: Gsm; ' Declaration
begin
CoInitialize(nil); ' Initialize COM
objGsm := CoGsm.Create; ' Creation
' Display version information
Writeln('Auron SMS Component ' + objGsm.Version);
CoUninitialize
end.