Advertisement
Guest User

Plik CPP

a guest
Mar 23rd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1.  
  2. #define MAX_LOADSTRING 100
  3.  
  4. // Global Variables:
  5. HINSTANCE hInst; // current instance
  6. TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
  7. TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
  8.  
  9. // Forward declarations of functions included in this code module:
  10. ATOM MyRegisterClass(HINSTANCE hInstance);
  11. BOOL InitInstance(HINSTANCE, int);
  12. LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
  13. INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
  14.  
  15. int APIENTRY _tWinMain(HINSTANCE hInstance,
  16. HINSTANCE hPrevInstance,
  17. LPTSTR lpCmdLine,
  18. int nCmdShow)
  19. {
  20. UNREFERENCED_PARAMETER(hPrevInstance);
  21. UNREFERENCED_PARAMETER(lpCmdLine);
  22.  
  23. // TODO: Place code here.
  24. MSG msg;
  25. HACCEL hAccelTable;
  26.  
  27. // Initialize global strings
  28. LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
  29. LoadString(hInstance, IDC_JAAPP, szWindowClass, MAX_LOADSTRING);
  30. MyRegisterClass(hInstance);
  31.  
  32. // Perform application initialization:
  33. if (!InitInstance (hInstance, nCmdShow))
  34. {
  35. return FALSE;
  36. }
  37.  
  38. hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_JAAPP));
  39.  
  40. char szString[] = { 'A','G','I','J','K','S', 0xFF }; // definicja ciagu znakow
  41.  
  42. if (FindChar_4())
  43. MessageBox(NULL, L"Found J", L"FindChar_4", MB_OK);
  44. else
  45. MessageBox(NULL, L"Not Found J", L"FindChar_4", MB_OK);
  46.  
  47.  
  48. // Main message loop:
  49. while (GetMessage(&msg, NULL, 0, 0))
  50. {
  51. if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
  52. {
  53. TranslateMessage(&msg);
  54. DispatchMessage(&msg);
  55. }
  56. }
  57.  
  58. return (int)msg.wParam;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement