Advertisement

06.02.2008 at 10:13AM PDT, ID: 23450539
[x]
Attachment Details

HOw do I send float data using WinSock

Asked by qsterno in WInsock, Microsoft Visual Basic.Net

Tags: Visual Basic

Hi
I am working in VB6 with a operators interface in an industrial application. My problem now is that some of the production data has to be sent to a external system and the supplier is expecting this information to be sent over Ethernet using TCP/IP.

My intention is to use WinSock and so far there has been no problem for me to understand how to send text strings. However do the other system expect my data to be recieved according to the following protocol.

3 float numbers  (8 bytes each)
2 text strings (10 chracters long)

My questions are:

1) How do I convert float numbers to bytes!? (Copymemory??):
2) How do I pack the data I will Send (altogetehr 34 bytes)) Byte array? String??


BR

qsternoStart Free Trial
 
 
Loading Advertisement...
 
[+][-]06.02.2008 at 10:20AM PDT, ID: 21693750

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 11:14AM PDT, ID: 21694137

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 11:22AM PDT, ID: 21694209

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 01:30AM PDT, ID: 21698414

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.03.2008 at 06:44AM PDT, ID: 21700307

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: WInsock, Microsoft Visual Basic.Net
Tags: Visual Basic
Sign Up Now!
Solution Provided By: PaulHews
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628