Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bufer = ( char *) malloc(1500);
- int *id, id_w;
- struct ST_ConInitChar * a, a_w;
- a = &a_w;
- id = &id_w;
- id_w = STRUCT_INIT_NUM;
- a_w = { "BeCareful", python_func.py_getCurrentHp(), python_func.py_getMaxHp(), python_func.py_getMaxSp(), python_func.py_getMaxSp(), python_func.py_getMoney() };
- DWORD wpisano,wpisano2 = 0;
- memset(bufer, 0, 1500);
- memcpy(bufer,id, sizeof(*id));
- memcpy(bufer + sizeof(*id), a, sizeof(*a));
- wpisano = send(maindll_socket, bufer, sizeof(*bufer), 0);
- bytesRecv = recv(metin2_mainmenu::getInstance().dll_clients[0], wiadomosc, sizeof(wiadomosc), 0);
- if (bytesRecv > 0){
- char *p = wiadomosc;
- int * id,id_w, size;
- ST_ConInitChar * a,b;
- id = (int *)p;
- size = sizeof(id);
- p += size;
- a = (ST_ConInitChar *)p;
- MessageBox(NULL, (LPCSTR)a->name, (LPCSTR) "DONE", NULL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement