Search the Community
Showing results for tags 'c code example'.
-
I can not program. What I am trying to do is make a little AutoIt Desktop SMS sender that uses BulkSMS upstream. BulkSMS provides services in the UK, USA, Europe and South Africa. BulkSMS provides several options (a) create string and plug it into browser and send via HTTP, ugly but it works; (b) a DLL called smstxt32.dll which supports a few functions to do this in a typical Windows Desktop application. They provide examples in C, PHP, Python etc. I do not understand any of those. I attach several files. The BulkSMS home page is located here: www.BulkSMS.com You can create a free account which allows five free credits to experiment with. So you can try to send the SMSes for free initially. The file "BulkSMS Win32 API ver 1006a.zip" contains a .doc help file and the smstxt32.dll file. BulkSMS Win32 API ver 1006a.zip The file BulkSMS.au3 is my attempt. BulkSMS.au3 My BulkSMS.au3 attempts to create the required structs for use with the DLL. I think I do manage, but do not understand anything about pointers. Then I attempt to actually send the SMS using the following DLLCALL Local $res = DllCall($__g_hDll_BulkSMS, _ ; name of DLL "BOOL", _ ; return type "SMSAPI_sendsms", _ ; function "LONG", _ ; type1 $gSMSAPI_NETWORKCONFIGURATION, _ ; param1 "LONG", _ ; type2 $gSMSAPI_ACCOUNTINFO, _ ; param2 "LONG", _ ; type3 $gSMSAPI_MESSAGEINFO, _ ; param3 "LONG", _ ; type4 $gSMSAPI_RESPONSEINFO _ ; param4 )This is based on the following example from the included help file, bool SMSAPI_sendsms( const LPSMSAPI_NETWORKCONFIGURATION lpNetConfig, const LPSMSAPI_ACCOUNTINFO lpAccInfo, const LPSMSAPI_MESSAGEINFO lpMsgInfo, LPSMSAPI_RESPONSEINFO lpResponseInfo);According to the AutoIt Helpfile, there are conversions to comparable data types. However, I do not see a "const" so I do not know what do with that. Also, the C example shows the use of "long pointers." What would this be in AutoIt? Thank you Skysnake BulkSMS Win32 API ver 1006a.zip BulkSMS.au3
- 1 reply
-
- dllcall
- c code example
-
(and 3 more)
Tagged with: