fork download
  1. void SampServerDebugStudioCoreThread()
  2. {
  3. __TRUNNING__ = true;
  4. while(__RUNNING__)
  5. {
  6.  
  7. boost::this_thread::sleep(boost::posix_time::milliseconds(5));
  8. }
  9. return;
  10. }
  11.  
  12. BOOL APIENTRY DllMain ( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
  13. {
  14. switch ( ul_reason_for_call )
  15. {
  16. case DLL_PROCESS_ATTACH:
  17. {
  18. boost::thread SSDSCThread(SampServerDebugStudioCoreThread);
  19. }
  20. break;
  21. case DLL_PROCESS_DETACH:
  22. {
  23.  
  24. }
  25. break;
  26. }
  27.  
  28. return true;
  29. }
  30.  
  31. bool Terminate()
  32. {
  33. __RUNNING__ = false;
  34. while(__TRUNNING__){}
  35. ExitProcess(0);
  36. return true;
  37. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void SampServerDebugStudioCoreThread()’:
prog.cpp:3: error: ‘__TRUNNING__’ was not declared in this scope
prog.cpp:4: error: ‘__RUNNING__’ was not declared in this scope
prog.cpp:7: error: ‘boost’ has not been declared
prog.cpp:7: error: ‘boost’ has not been declared
prog.cpp: At global scope:
prog.cpp:12: error: ‘BOOL’ does not name a type
prog.cpp: In function ‘bool Terminate()’:
prog.cpp:33: error: ‘__RUNNING__’ was not declared in this scope
prog.cpp:34: error: ‘__TRUNNING__’ was not declared in this scope
prog.cpp:35: error: ‘ExitProcess’ was not declared in this scope
stdout
Standard output is empty