Advertisement
dram

Untitled

Apr 30th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1.  
  2. bufer = ( char *) malloc(1500);
  3.  
  4. int *id, id_w;
  5. struct ST_ConInitChar * a, a_w;
  6. a = &a_w;
  7. id = &id_w;
  8. id_w = STRUCT_INIT_NUM;
  9. a_w = { "BeCareful", python_func.py_getCurrentHp(), python_func.py_getMaxHp(), python_func.py_getMaxSp(), python_func.py_getMaxSp(), python_func.py_getMoney() };
  10. DWORD wpisano,wpisano2 = 0;
  11. memset(bufer, 0, 1500);
  12. memcpy(bufer,id, sizeof(*id));
  13. memcpy(bufer + sizeof(*id), a, sizeof(*a));
  14. wpisano = send(maindll_socket, bufer, sizeof(*bufer), 0);
  15.  
  16.  
  17. bytesRecv = recv(metin2_mainmenu::getInstance().dll_clients[0], wiadomosc, sizeof(wiadomosc), 0);
  18.  
  19. if (bytesRecv > 0){
  20. char *p = wiadomosc;
  21. int * id,id_w, size;
  22. ST_ConInitChar * a,b;
  23. id = (int *)p;
  24. size = sizeof(id);
  25. p += size;
  26. a = (ST_ConInitChar *)p;
  27. MessageBox(NULL, (LPCSTR)a->name, (LPCSTR) "DONE", NULL);
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement