Advertisement
Combreal

chatClient01.h

Nov 11th, 2019
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.15 KB | None | 0 0
  1. #include <winsock2.h>
  2. #include <ws2tcpip.h>
  3. #pragma comment(lib, "ws2_32.lib")
  4. #include <windows.h>
  5. #include <string>
  6. #include <tchar.h>
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. #include <errno.h>
  10. #include <iostream>
  11. #pragma warning( disable : 4996)
  12. #define TRUE 1
  13. #define FALSE 0
  14. #define PORT 5555
  15. #define ID_BUTTONA 1
  16. #define ID_EDITA 2
  17. #define ID_EDITB 3
  18. #define IDC_STATICA 4
  19. #define IDM_ABOUT 5
  20. #define IDM_CONFIGURE 6
  21. #define IDC_STATICC 4
  22. #define IDC_STATICD 5
  23. #define IDC_STATICE 6
  24. #define ID_EDITC 7
  25. #define ID_EDITD 8
  26. #define ID_EDITE 9
  27. #define ID_BUTTONB 10
  28. #define IDI_MYICON 101
  29. using namespace std;
  30.  
  31.  
  32. LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
  33. LRESULT CALLBACK WndProcB(HWND, UINT, WPARAM, LPARAM);
  34. LPWSTR stringToLPWSTR(const std::string& instr);
  35. void AddMenus(HWND);
  36. void CenterWindow(HWND);
  37. void SendText(HWND chatBox, HWND sendBox);
  38. HWND hWindowa, hWindowb;
  39. HWND hwndEditA, hwndEditB, hwndEditC, hwndEditD, hwndEditE;
  40. HWND hwndTextA, hwndTextB, hwndTextC, hwndTextD, hwndTextE;
  41. HWND hwndButtonA, hwndButtonB;
  42. bool showWindowB = false;
  43. std::string address = "192.168.1.10", port = "5555", username = "Combre";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement