I have a MobilusSMS.dll that is supported from my local sms company. I have registered it to my windows using regsvr32 mobilussms.dll. The message is said that It is registered successfully.
I have a ASP code.
- Code: Select all Expand view
- Sub SendSMS()
Set objSMS = Server.CreateObject("MobilusSMS.Gateway")
objSMS.addtosmsbasket "Message 1","05334924505"
objSMS.addtosmsbasket "Message 2","05334924505"
strDonus = objSMS.sendsms("test-mb1000","4574","","")
response.write strDonus
objSMS.clearsmsbasket
Set objSMS = Nothing
End Sub
I try to write like this.
- Code: Select all Expand view
- MSgInfo("I am going to Send SMS")
TRY
objSMS := CREATEOBJECT( "MobilusSMS.Gateway" )
objSMS:addtosmsbasket("Message 1","05334924505")
objSMS:addtosmsbasket("Message 2","05334924505")
strDonus := objSMS.sendsms("test-mb1000","4574","","")
MSgInfo(strDonus)
objSMS.clearsmsbasket()
objSMS := Nil
CATCH oError
MsgInfo( "Could not send SMS" + ";" + ;
"Error: " + TRANSFORM(oError:GenCode, NIL) + ";" + ;
"SubC: " + TRANSFORM(oError:SubCode, NIL) + ";" + ;
"OSCode: " + TRANSFORM(oError:OsCode, NIL) + ";" + ;
"SubSystem: " + TRANSFORM(oError:SubSystem, NIL) + ";" + ;
"Message: " + oError:Description )
END
oError:=NIL
When I try to compile it gives an error.
- Code: Select all Expand view
- xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6633)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Generating object output to 'objw\EPosta.obj'...
objw\EPosta.c(23): fatal error: Could not find include file "OBJSMS.xns".
Type: C >>>Couldn't build: EPosta.obj<<<
How Can I solve this? Thanks in advance.