Packets

  • Thread starter Thread starter David Hognkamp
  • Start date Start date
D

David Hognkamp

I am trying to write a vb.net app that talks to a device
over the network. This device has a specific structure
for the packet. The C code is:
struct Packet
{
WORD wToken1;
WORD wToken2;
UINT uID;
WORD WaveformSel;
BYTE bSize;
BYTE bReserved[5];
union dataHeader
{
BYTE data[32];
unsigned short int
shortIntVal[16];
unsigned long int longIntVal[8];
float
floatVal[8];
} headerData;

I have tried to do a structure but can't seem to figure
it out and our C programer doesn't do VB. Any help would
be apreciated.
 
Back
Top