Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <winsock2.h>
- #include <ws2tcpip.h>
- #pragma comment(lib, "ws2_32.lib")
- #include <windows.h>
- #include <string>
- #include <tchar.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <errno.h>
- #include <iostream>
- #pragma warning( disable : 4996)
- #define TRUE 1
- #define FALSE 0
- #define PORT 5555
- #define ID_BUTTONA 1
- #define ID_EDITA 2
- #define ID_EDITB 3
- #define IDC_STATICA 4
- #define IDM_ABOUT 5
- #define IDM_CONFIGURE 6
- #define IDC_STATICC 4
- #define IDC_STATICD 5
- #define IDC_STATICE 6
- #define ID_EDITC 7
- #define ID_EDITD 8
- #define ID_EDITE 9
- #define ID_BUTTONB 10
- #define IDI_MYICON 101
- using namespace std;
- LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
- LRESULT CALLBACK WndProcB(HWND, UINT, WPARAM, LPARAM);
- LPWSTR stringToLPWSTR(const std::string& instr);
- void AddMenus(HWND);
- void CenterWindow(HWND);
- void SendText(HWND chatBox, HWND sendBox);
- HWND hWindowa, hWindowb;
- HWND hwndEditA, hwndEditB, hwndEditC, hwndEditD, hwndEditE;
- HWND hwndTextA, hwndTextB, hwndTextC, hwndTextD, hwndTextE;
- HWND hwndButtonA, hwndButtonB;
- bool showWindowB = false;
- std::string address = "192.168.1.10", port = "5555", username = "Combre";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement