Embedded Visual Basic Windows Ce And Pocket Pc Mobile Applications [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Embedded Visual Basic Windows Ce And Pocket Pc Mobile Applications [Electronic resources] - نسخه متنی

Chris Tacke; Timothy Bassett

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید



eMbedded Visual Basic®: Windows® CE and Pocket PC Mobile Applications

By
Chris Tacke, Timothy Bassett

Table of Contents


Chapter 5. Using the Windows CE WinSock for IR Communication


IN THIS CHAPTER


Socket communications are generally the same regardless of the development environment. For Windows there is the Windows Sockets standard, and for Unix there is the Berkeley Sockets standard, but the differencesespecially for our purposesaren't important.

Socket communication in eMbedded Visual Basic is almost identical to Visual Basic 6, so the information covered here isn't as environment specific as the rest of the book.

"Why include it then?" you might ask. The answer is that transferring data to or from a Pocket PC requires some mode of connectivity, and socket communication is probably the simplest.

The WinSock control included with VB 6 has two protocols available, TCP/IP and UDP. eVB doesn't support UDP, but it does give us the addition of infrared, or IrDA, support. You'll see that using the IrDA port is almost transparent.

With a strong understanding of socket communication, you'll be well on your way to being able to build your first distributed or enterprise solution.

This chapter explores most of the power and functionality of socket programming exposed through the MSCEWinsockCtl library. The usefulness of a Pocket PC application grows exponentially when it can communicate with other Pocket PCs, desktop PCs, and even enterprise servers. In addition the simplicity and ease of using the WinSock control makes it a natural choice for communication.

In this chapter you will learn about

  • The basics of socket communication

  • Connecting to another Pocket PC or desktop PC through a socket

  • Listening for connection requests from any socket server

  • Establishing two-way communication between your Pocket PC and another

  • Transferring text back and forth in a "chat" program

  • Transferring text files to another socket client

  • Creating and using a custom progress bar


You will also briefly review the use of the MenuBar.

As we'll do with all the chapters, we will also uncover some of eVB's more subtle nuances that can cause problems and headaches, as well as give coding tips applicable to any eVB application.



    / 108