- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for LoadStringFromResource (0.27 sec)
-
platforms/documentation/docs/src/snippets/native-binaries/windows-resources/groovy/src/hello/cpp/hello.cpp
#include "resources.h" std::string LoadStringFromResource(UINT stringID) { HINSTANCE instance = GetModuleHandle("hello"); WCHAR * pBuf = NULL; int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0); std::wstring wide = std::wstring(pBuf, len); return std::string(wide.begin(), wide.end()); } void hello() { std::string hello = LoadStringFromResource(IDS_HELLO);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 528 bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateWindowsResourcesBaseNamesTestApp.groovy
return std::string(wide.begin(), wide.end()); } void hello() { std::string foo1 = LoadStringFromResource(IDS_FOO1); std::string foo2 = LoadStringFromResource(IDS_FOO2); std::cout << foo1; std::cout << foo2; } """), sourceFile("rc/dir1", "resources.rc", """ #include "hello.h" STRINGTABLE { IDS_FOO1, "foo1" } """), sourceFile("rc/dir2", "resources.rc", """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/WindowsResourceHelloWorldApp.groovy
""") } List<SourceFile> librarySources = [ new SourceFile("cpp", "hello.cpp", """ #include <iostream> #include <windows.h> #include <string> #include "hello.h" std::string LoadStringFromResource(UINT stringID) { HINSTANCE instance = GetModuleHandle("hello"); WCHAR * pBuf = NULL; int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.4K bytes - Viewed (0)