如何从数据库写一张表到数据包,并从数据包中读出这张表?急!
我有一个struct如下:
struct MESSAGE
{
int Reserve;
char SenderIP[16];
unsigned short SenderPort;
char ReceiverIP[16];
unsigned short ReceiverPort;
int SenderID;
int ReceiverID;
int MsgType;
int MsgSize;
int ContentSize; //indicate how many bytes are available in the Content
char Content[1024];
};
其中的Content[1024]用来存放主要数据。
另有一张表,想将表的内容放到Content中,并通过UDP方式传到另一台机器上。不知道具体改如何操作,ADO中有此类功能吗?望达人指点!急!!!
PS:
如有可能,另请说明接收方如何取用Content中的内容(表)比较方便。