Click here to Skip to main content
15,885,980 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: hi all Pin
0x3c09-Mar-09 6:55
0x3c09-Mar-09 6:55 
GeneralRe: hi all Pin
Jon_Boy9-Mar-09 7:05
Jon_Boy9-Mar-09 7:05 
GeneralRe: hi all Pin
0x3c09-Mar-09 7:38
0x3c09-Mar-09 7:38 
GeneralRe: hi all Pin
Jon_Boy9-Mar-09 9:36
Jon_Boy9-Mar-09 9:36 
AnswerRe: hi all Pin
Christian Graus9-Mar-09 14:42
protectorChristian Graus9-Mar-09 14:42 
QuestionWriting IR data transmitter / receiver for Pocket PC 2003 (VB.Net) Pin
Codemonkey858-Mar-09 18:50
Codemonkey858-Mar-09 18:50 
AnswerRe: Writing IR data transmitter / receiver for Pocket PC 2003 (VB.Net) Pin
Dave Kreskowiak9-Mar-09 4:27
mveDave Kreskowiak9-Mar-09 4:27 
GeneralRe: Writing IR data transmitter / receiver for Pocket PC 2003 (VB.Net) Pin
Codemonkey859-Mar-09 4:53
Codemonkey859-Mar-09 4:53 
I have been trying to use socket communications so far, but whether I use that or serial communications, I'm having trouble just setting the connection up in the first place. I've actually been trying to understand how to use either in a desktop setting as well, to no avail.

For the socket communication option, I am having problems defining the EndPoint for the Socket.Connect method. This is what I have so far:

Dim IR As Socket = New Socket(AddressFamily.Irda, SocketType.Stream, ProtocolType.Unspecified)

Dim EP As System.Net.EndPoint

Dim SA As System.Net.SocketAddress

SA = New System.Net.SocketAddress(AddressFamily.Irda, 1)

EP.Create(SA)

IR.Connect(EP)

IR.Send(New Byte() {1})

IR.Close()


This doesn't work because the EndPoint (EP) has not been assigned a value. EndPoint also does not use a New constructor, so I guess I'm just not sure how to declare it.

I would just use the IRDA namespace, but my project is (like so many others') meant to communicate with remote controls and other "dumb" IR devices, rather than communicating with another Pocket PC or Windows based device.

I realize the complications involved in communicating with such a device, but right now my main concern is even being able to send or receive any data at all. I figure I'll sort out the data format after that.

Anyway, I don't know C++, but I will check out that link and see if I understand it.

As I sit here, I contemplate the last words of Socrates: "I drank what?".

Pokémon Pearl Friend Code: 4554-2418-6836

QuestionIP information Pin
bona_bone18-Mar-09 8:44
bona_bone18-Mar-09 8:44 
AnswerRe: IP information Pin
Ashfield8-Mar-09 8:57
Ashfield8-Mar-09 8:57 
QuestionRe: IP information Pin
bona_bone18-Mar-09 9:01
bona_bone18-Mar-09 9:01 
AnswerRe: IP information Pin
0x3c08-Mar-09 9:12
0x3c08-Mar-09 9:12 
GeneralRe: IP information Pin
bona_bone18-Mar-09 11:01
bona_bone18-Mar-09 11:01 
GeneralRe: IP information Pin
Luc Pattyn8-Mar-09 13:11
sitebuilderLuc Pattyn8-Mar-09 13:11 
GeneralRe: IP information Pin
Dave Kreskowiak8-Mar-09 13:23
mveDave Kreskowiak8-Mar-09 13:23 
Questionuse of button Pin
nazimghori8-Mar-09 4:22
nazimghori8-Mar-09 4:22 
AnswerRe: use of button Pin
Dave Kreskowiak8-Mar-09 6:36
mveDave Kreskowiak8-Mar-09 6:36 
GeneralRe: use of button Pin
nazimghori8-Mar-09 6:56
nazimghori8-Mar-09 6:56 
GeneralRe: use of button Pin
Smithers-Jones8-Mar-09 7:55
Smithers-Jones8-Mar-09 7:55 
GeneralRe: use of button Pin
nazimghori8-Mar-09 8:26
nazimghori8-Mar-09 8:26 
GeneralRe: use of button Pin
Dave Kreskowiak8-Mar-09 13:18
mveDave Kreskowiak8-Mar-09 13:18 
Questionproblem with database Pin
nazimghori8-Mar-09 0:04
nazimghori8-Mar-09 0:04 
AnswerRe: problem with database Pin
Colin Angus Mackay8-Mar-09 2:21
Colin Angus Mackay8-Mar-09 2:21 
GeneralRe: problem with database Pin
nazimghori8-Mar-09 3:39
nazimghori8-Mar-09 3:39 
QuestionIPTC Pin
pvatanpour7-Mar-09 19:43
pvatanpour7-Mar-09 19:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.