Hi,
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.
I try to write like this.
When I try to compile it gives an error.
How Can I solve this? Thanks in advance.
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.
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 SubI try to write like this.
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:=NILWhen I try to compile it gives an error.
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6633)
Copyright 1999-2009, http://www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
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.
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06