fork download
  1. //========= resource.h
  2. //{{NO_DEPENDENCIES}}
  3. // Microsoft Visual C++ generated include file.
  4. // Used by shader.rc
  5. //
  6. #define IDR_PSO1 101
  7.  
  8. // Next default values for new objects
  9. //
  10. #ifdef APSTUDIO_INVOKED
  11. #ifndef APSTUDIO_READONLY_SYMBOLS
  12. #define _APS_NEXT_RESOURCE_VALUE 102
  13. #define _APS_NEXT_COMMAND_VALUE 40001
  14. #define _APS_NEXT_CONTROL_VALUE 1001
  15. #define _APS_NEXT_SYMED_VALUE 101
  16. #endif
  17. #endif
  18.  
  19. //=================.rcファイル
  20. // Microsoft Visual C++ generated resource script.
  21. //
  22. #include "resource.h"
  23.  
  24. #define APSTUDIO_READONLY_SYMBOLS
  25. /////////////////////////////////////////////////////////////////////////////
  26. //
  27. // Generated from the TEXTINCLUDE 2 resource.
  28. //
  29. #include "afxres.h"
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32. #undef APSTUDIO_READONLY_SYMBOLS
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // 日本語 (日本) resources
  36.  
  37. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_JPN)
  38. LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
  39.  
  40. #ifdef APSTUDIO_INVOKED
  41. /////////////////////////////////////////////////////////////////////////////
  42. //
  43. // TEXTINCLUDE
  44. //
  45.  
  46. 1 TEXTINCLUDE
  47. BEGIN
  48. "resource.h\0"
  49. END
  50.  
  51. 2 TEXTINCLUDE
  52. BEGIN
  53. "#include ""afxres.h""\r\n"
  54. "\0"
  55. END
  56.  
  57. 3 TEXTINCLUDE
  58. BEGIN
  59. "\r\n"
  60. "\0"
  61. END
  62.  
  63. #endif // APSTUDIO_INVOKED
  64.  
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67. //
  68. // PSO
  69. //
  70.  
  71. IDR_PSO1 PSO DISCARDABLE "SamplePS.pso"
  72. #endif // 日本語 (日本) resources
  73. /////////////////////////////////////////////////////////////////////////////
  74.  
  75.  
  76.  
  77. #ifndef APSTUDIO_INVOKED
  78. /////////////////////////////////////////////////////////////////////////////
  79. //
  80. // Generated from the TEXTINCLUDE 3 resource.
  81. //
  82.  
  83.  
  84. /////////////////////////////////////////////////////////////////////////////
  85. #endif // not APSTUDIO_INVOKED
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93. // use
  94. auto hTest = LoadResource(NULL, FindResource(NULL, "IDR_PSO1", "PSO"));
  95. auto lpTest = (LPTSTR)LockResource(hTest);
  96. DWORD dwResourceSize = SizeofResource(NULL, FindResource(NULL, "IDR_PSO1", "PSO"));
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:22:22: error: resource.h: No such file or directory
prog.cpp:29:20: error: afxres.h: No such file or directory
prog.cpp:38: error: ‘LANGUAGE’ does not name a type
prog.cpp:95: error: ISO C++ forbids declaration of ‘lpTest’ with no type
prog.cpp:95: error: top-level declaration of ‘lpTest’ specifies ‘auto’
prog.cpp:95: error: ‘LPTSTR’ was not declared in this scope
prog.cpp:95: error: expected ‘,’ or ‘;’ before ‘LockResource’
prog.cpp:96: error: ‘DWORD’ does not name a type
stdout
Standard output is empty