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. char str[] = "Hello Heap!";
  8. HANDLE hProcessHeap = GetProcessHeap();
  9. pAlloc1 = (BYTE*)HeapAlloc(hProcessHeap, 0, 20);
  10. strcpy_s((char *)pAlloc1,strlen(str)+1,str);
  11. HeapFree(hProcessHeap, 0, pAlloc1);
  12. return 0;
  13. }
  14.  
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