Original Post
Will pointers hold true if you send them via WinSock?
Example:
class s
{
char* name;
char* dat_;
}
s myclass;
myclass.name = new char [15];
strcpy(myclass.name, "Hello!");
send(connsock, (char*)&myclass, sizeof(myclass), 0)
...
When the class gets to the other side, will [myclass.name] still hold "Hello!"? Or will it hold a bad pointer? Also, how are references affected?
==================
My (soon-to-be) Cherished Cookie of Appreciation:
-- MattB - for WinSock advice --