fork download
  1. #include <Windows.h>
  2. #include <tchar.h>
  3. #include <stdio.h>
  4. #include <iostream>
  5. #include <string>
  6. #include <Shlwapi.h>
  7. #include <locale.h>
  8. #include <regex>
  9. #include <cstdio>
  10. #include <vector>
  11. #include <regex>
  12. #include <WinNls.h>
  13.  
  14. #pragma comment(lib, "Shlwapi.lib")
  15. #pragma comment(lib, "kernel32.lib")
  16. using namespace std;
  17.  
  18. int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR cmdLine, int nCmdShow)
  19. {
  20. setlocale(LC_ALL, "Japanese");
  21.  
  22. LPWSTR lpwCmdLine = GetCommandLine();
  23.  
  24. int cnt = 0;
  25.  
  26. LPWSTR *lpwcmd;
  27.  
  28. lpwcmd = CommandLineToArgvW(lpwCmdLine, &cnt);
  29.  
  30. MessageBox(NULL, (LPCWSTR)lpwcmd, (LPCWSTR)lpwcmd, MB_OK);
  31.  
  32. return 0;
  33. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:21: fatal error: Windows.h: No such file or directory
compilation terminated.
stdout
Standard output is empty