473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Send URL Request To Send SMS Via NowSMS

8
I use this Code To Send SMS Via NowSMS its work in VB6 but in VS2005
doesn't .
Expand|Select|Wrap|Line Numbers
  1. Public Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
  2. Public Declare Function InternetOpenUrl Lib "wininet.dll" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal sURL As String, ByVal sHeaders As String, ByVal lHeadersLength As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long
  3. Public Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer
  4.  
  5. Public Const IF_NO_CACHE_WRITE = &H4000000
  6.  
  7. Dim hInternet As Long, hSession As Long, iResult As Long
  8. Dim urlStr as String
  9.  
  10. urlStr = "http://127.0.0.1:8800/?PhoneNumber=%2B218925001234&&Text=Test&&Sender=5353"
  11.  
  12. hSession = InternetOpen("vb wininet", 1, vbNullString, vbNullString, 0)
  13.  
  14. If hSession Then 
  15.  
  16. hInternet = InternetOpenUrl(hSession, UrlStr, vbNullString, 0, IF_NO_CACHE_WRITE, 0)
  17.  
  18. iResult = InternetCloseHandle(hInternet)
  19.  
  20. End If
  21.  
Feb 16 '08 #1
2 2424
kenobewan
4,871 Expert 4TB
Looks like you need a converter, 2003 has a built in vb6 converter but unsure about 2005. HTH.
Feb 17 '08 #2
deco
8
i don't think so because wininet.dll is a windows library handles internet ,itsn't a vb6 component
Feb 20 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Leon | last post by:
as title.....how to do it ?..... >_< use remote call....? can don't use remote (possible)??on the same host use a single process ?? modify ip header ???
5
by: Prabhat Nath | last post by:
Hi All, Is that possible that I can send request to IIS Server after a .ASP page is displayed? My Requirement is: Clinet will Fill the Details in one Request Form after the details are...
0
by: Andy Purcell | last post by:
Hello, I am trying to use Send.Send() or Send.SendWait() to simulate an audio mute key being pressed. What string argument should I use for this purpose? Thanks, andy
1
by: nic | last post by:
Hi, I have a page where I need to send a request to another website, get the response and display it on the page. Does anyone know of any examples on how to do this? Thanks
0
by: Kevin Burton | last post by:
I have an HttpModule that during the learning process I have wired up all events that are possible to handle just to see what is available and when things occur. There are two events that I don't...
1
by: Kevin | last post by:
I need to send a request to a jsp with data added to the http request header. I am using Webclient to send the request and I am putting the returned string (html) into a label on my aspx page but...
1
by: mich dobelman | last post by:
I am using the snoopy.class.php to send some http request. Does anyone know if it allows to send request with specific encoding? What i want to do is sending japanese as a parameter. But always...
0
by: panku007 | last post by:
Hi all, I have one jsp page in that page three frames are created and one of three frame, one jsp page is displaying and from that page i want to send request to servlet from one frame...
1
by: mvenkatesan | last post by:
hi I sent soap xml to web server for reqeust but webserver doesnot send request what is the problem? I written some tag soap envelop, encoding and request tag where is put webserver address?...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.