Compaq iPAQ h3760 Datenblatt Seite 17

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 75
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 16
ENEE408G Fall 2003 (Update 09/23/2003)
Mobile Computing and Pocket PC Programming
16
If Err.Number <> 0 Then
MsgBox "Error:" & Err.Number & vbCrLf & Err.Description
Else
txtOutput.Text = sRecieveDate
WinSock1.Close
End If
End Sub
We set the Winsock1.RemoteHost as the server’s name
9
and RemotePort as the
default port 80 for HTTP. Winsock1.Connect sets up a connection between two
devices. If the connection is successfully established, the client and server can
transfer data to each other through Winsock1.SendData and Winsock1.Getdata. If
other device sends data to Pocket PC, it will trigger the Winsock1_DataArrival
and we will be able to deal with the incoming data. As shown above, we use On
Error Resume Next to catch any run time error. The Err object contains the
information about the error.
(4) Make sure the http server is working and put a text file in the www root directory,
so that we can run a test by setting the server name and the file we want to get.
The left figure below shows the program interface. After requesting, we get the
file in the txtOutput Window shown in the right figure below.
7. Windows CE API
(a) In addition to the ActiveX controls, we can extend the ability of eMbedded Visual
Basic by calling procedures included in the Windows CE API (Application
Programming Interface). The Windows CE API can be regarded as a subset of the
9
In this case, it’s the machine we used with eVB. Make sure there exists an http server inside the machine
If there is no http server inside your machine, you can download the freeware “Lil’ HTTP server” from
http://www.summitcn.com/
and install it. Set the port, IP and server name and then start it.
Seitenansicht 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 74 75

Kommentare zu diesen Handbüchern

Keine Kommentare