fork download
  1. #include <windows.h>
  2. #include <stdio.h>
  3.  
  4. int __cdecl wmain(int argc, wchar_t* pArgs[])
  5. {
  6. BYTE* pAlloc1 = NULL;
  7. HANDLE hProcessHeap = GetProcessHeap();
  8. pAlloc1 = (BYTE*)HeapAlloc(hProcessHeap, 0, 16);
  9. pAlloc1 = (BYTE*)"Hello Heap!";
  10. HeapFree(hProcessHeap, 0, pAlloc1);
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
         ^
1 error generated.
stdout
Standard output is empty