You are here:
ActiveXperts.com > SMS and MMS Toolkit > How to Use the SMS and MMS Toolkit > GSM/GPRS (MM1) > Delphi
Quicklinks
The SMS and MMS Toolkit is a software development kit (SDK) to enhance an application or script with SMS, MMS and Pager functionality. SMS messages can be sent using a GSM/GPRS modem, an SMPP provider, an HTTP compliant SMS provider or using a standard dialup or fixed-line SMS modem. MMS messages can be sent via a GSM/GPRS modem (MM1), an SMTP server (MM4) or an XML/SOAP compliant provider (MM7).
SMS features:
MMS features:
Pager features:
This document describes how the SMS and MMS Toolkit can be integrated into Delphi projects.
Download the the SMS and MMS Toolkit from the ActiveXperts Download Site and start the installation. The installation guides you through the installation process.
Launch Borland Delphi (for instance 'Delphi 7') from the Start menu. Choose 'New' from the 'File' menu and select your preferred kind of application, for instance: 'VCL Forms Application - Delphi for Win32'. A new Form is displayed in the workspace.
(Click on the picture to enlarge)
Now that a new project has been created, you must add a reference to the SMS and MMS Toolkit in the project to be able to use the SMS and MMS Toolkit objects. To do so, choose 'Import Type Library' from the 'Project' menu. The 'Import Type Library' dialog appears:

(Click on the picture to enlarge)
Select the 'ActiveXperts SMS and MMS Toolkit 2.1 Type Library' and click 'Create Unit'. The interface code is generated now and is shown in the AXmsCtrl_TLB tab of the project.
From the Project Manager, open Unit1.bas and add the AXmsCtrl_TLB to the 'Uses' statement to refer to the SMS and MMS Toolkit library:
(Click on the picture to enlarge)
In the 'private' or 'public' section, declare the following objects:
objMm1Protocol : IMmsProtocolMm1; objMmsMessage : IMmsMessage; objMmsSlide : IMmsSlide; objMmsConstants : IMmsConstants;
You can now create the objects, for instance in the 'FormCreate' function:
objMm1Protocol := TMmsProtocolMm1.Create(Form1).DefaultInterface; objMmsConstants := TMmsConstants.Create(Form1).DefaultInterface
NOTE: The 'MmsMessage' and 'MmsSlide' objects aren't created here, they are returned by the 'MmsProtocolMm1' object while receiving.
You can now receive MMS messages.
The following code shows how to receive MMS messages using a MM1 (GPRS) connection:
Coming Soon...
There are many working samples included with the product. You can also find them on the ActiveXperts FTP site: ftp.activexperts-labs.com/samples/mobile-messaging-component.
The MMS Toolkit project ships with a set of samples for Borland Delphi. The projects are created with Borland Delphi 7.
Users with a later version of Borland Delphi 7 can open such a project. The Borland Conversion Wizard will guide you through the process of converting the project to the version used.