G
Guest
I'm reading byte information from a C++ program via TCP sockets. At one time
I thought I came across away to convert C Float data type into a VB single
data type. I'm reading the C data type in bytes from the socket stream but
can't seem to convert it. Any help would be greatly appreciated. Here is my
data:
The actual values in the C++ application:
Node 1 LL40
- Position [46.778 - 19.034]
The byte values I'm reading from the C++ socket stream:
-----------Node---------------
(8) 1 Byte
(9) 0 Byte
-----------X Coord------------
This should = 46.778
(10) 172 Byte
(11) 28 Byte
(12) 59 Byte
(13) 66 Byte
-----------y coord------------
This should = 19.034
(14) 162 Byte
(15) 69 Byte
(16) 152 Byte
(17) 65 Byte
------------------------------
I thought I came across away to convert C Float data type into a VB single
data type. I'm reading the C data type in bytes from the socket stream but
can't seem to convert it. Any help would be greatly appreciated. Here is my
data:
The actual values in the C++ application:
Node 1 LL40
- Position [46.778 - 19.034]
The byte values I'm reading from the C++ socket stream:
-----------Node---------------
(8) 1 Byte
(9) 0 Byte
-----------X Coord------------
This should = 46.778
(10) 172 Byte
(11) 28 Byte
(12) 59 Byte
(13) 66 Byte
-----------y coord------------
This should = 19.034
(14) 162 Byte
(15) 69 Byte
(16) 152 Byte
(17) 65 Byte
------------------------------