Hi, i have this code:
struct MenuChan
{
virtual void draw()=0;
};
struct MenuData_01
{
int nEast;
int nNorth;
char cId;
};
struct MenuChan_01: public PstarMenuChan, public MenuData_01
{
virtual void draw();
};
Im trying to send MenuData_01 structure data thru tcp and read it in the other side in order to convert it to MenuChan_01, the problem is that the size of thus two structure is different.
i get this results:
sizeof(MenuData_01)=12
sizeof(MenuChan_01)=16
i know that this space is populated by the vPtr but i don't know how to convert
the data i get to the MenuChan_01 class.
please help.