Esendex provides an ActiveX component with a COM interface that enables you to integrate your applications written in COM-compliant languages such as VB6, ASP, Delphi and C++, with our services.
The component has features that enable you to send text messages, query the status of messages, retrieve messages from your inbox, manage your contacts and get information about your account.
As with all COM components, you must first register it with the system. To do this, type the following from a command prompt:
REGSVR32 EsendexSdk2.DLL
You will see a message that the component has been successfully registered.
To find out more about the ActiveX component download the Esendex SDK for your language of choice and read the documentation contained within it.
Error Codes
If an error occurs when using the ActiveX component, you will need to perform an additional step to be able to determine the error code.
The returned error number needs to be logically AND'd with the hex value FFFF. This strips the COM error number out and leaves behind the Esendex error code.
The following is an example of how this is achieved in ASP (VBScript):
if err.number <> 0 then
'Get the error code!
Dim errorCode errorCode = err.number And &HFFFF
end if