Questions tagged [resource-files]

Resource files are those files that are used to instruct the compiler/linker toolchain on which resources (icons, dialogs, etc.) are to be embedded in the binary being built.

267 questions
3
votes
2 answers

Make resources inaccessible for user

I've written a game in C/C++ which is soon ready to be released. My question is: what would be a good way to make the resources (images/sound etc) inaccessible to the user? It doesn't have to be a strong encryption, I just don't want the average…
Orujimaru
  • 835
  • 2
  • 13
  • 18
3
votes
1 answer

resource (.rc) file include header ignores visual studio project include paths

I'm trying to include a header file in a resource file (.rc). The path is something like "folder_a/sub_folder_b/file_name.h" The folder which folder_a is in is included in the project's c++ include directory. When I write the same #include directive…
Asaf
  • 4,317
  • 28
  • 48
3
votes
4 answers

How to deal with multiple resource files for localization?

I have a Project in which lot of resource strings are used. So, I keep them organized based on modules as a folder structure. Like if Module A is a folder then under Module A i have the following files. Module A ResourceFileA1.resx …
satya
  • 2,537
  • 9
  • 33
  • 43
3
votes
2 answers

How can I access resource files from within a Java .app bundle running on OS X, Java 7?

Note that I am talking about Java 7, since the info.plist specification for a Java .app bundle seems to have changed a bit since Java 6. Currently my code looks like this: File file = new File( "documentation/index.html" ); if (file.exists()) { …
Epaga
  • 38,231
  • 58
  • 157
  • 245
2
votes
1 answer

How can i create a common ViewModel with a varying Resource file?

I have a ViewModel like this: public class MyViewModel { [Display(Name = "One_Name", ResourceType = typeof(Resources.User.Resource1))] public string One { get; set; } [Display(Name = "Two_Name", ResourceType =…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
2
votes
0 answers

Data names on Windows Event Logging

In order to make my custom event logs on Windows easily parsable and structured, I am utilizing Message Resource files which is explained here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa363669(v=vs.85).aspx I was looking at the xml…
Natan
  • 2,816
  • 20
  • 37
2
votes
1 answer

Localization in ASP.NET Core using VS Code - "No resources found"

I'm trying to implement localization in my ASP.NET Core application using VS Code, but I keep getting "No resources found = true". I've double-checked my implementation and I'm pretty sure everything is set up correctly, but I can't figure out…
2
votes
1 answer

#ifdef gets lost in resource file

I have resource file which specifies a dialog. In this dialog I display the app name, version and if it is the 32bit or 64bit version of the program. #ifdef WIN64 LTEXT "My App, Version 1.2.3.0 (64 bit)", IDC_APPLICATION_TITLE_TEXT,…
user20716902
  • 861
  • 1
  • 14
2
votes
0 answers

Is there a tool to generate many resource files (.resx) for many-page application automatically?

Our WebForm ASP.NET application contains about 60 of .aspx and .ascx files. Is there any tool to generate (for the first time) their local resource files? I know how to use the built-in tool in Visual Studio (2019, Community Ed.) -- you switch the…
pepr
  • 20,112
  • 15
  • 76
  • 139
2
votes
2 answers

Stream is not a valid resource file

I am uploading a file to Api and trying to read the resource key and values. I am getting below exception when I try to read the file. System.ArgumentException: Stream is not a valid resource file. at…
Balanjaneyulu K
  • 3,660
  • 5
  • 24
  • 45
2
votes
1 answer

Concatenate String in resource file and pass it to menu item string (winapi) c++

I am writing a win32 application using winapi and i want to concatenate a string in my resource file and give the stirng to my menuitem as the string it should show. when i want to give it to a control it works like a charm, but when i want to use…
2
votes
3 answers

VC++ Resource Editor Problem?

I have a working C++ project on VS2005, I made a small change which causes a problem and I dont know what is it and how to resolve, I added a new string entry in the resource file using the VS2005 RC editor (the default one in VS2005) but after…
Ahmed
  • 7,148
  • 12
  • 57
  • 96
2
votes
0 answers

Fallback levels of choosing resource file in resource manager chooses default instead parent

I have resource files for languages named as Resource.en-US.resx, Resource.en-GB.resx, Resource.en.resx, Resource.es-ES.resx, Resource.es-MX.resx, Resource.es.resx, Resource.resx ->English When I give the CultureInfo for language code es-ES I get…
2
votes
0 answers

Delay loading of Large embedded resources in c++ executable

The aim is to create a single file offline (No internet is required) installer. For this reason, the following things are done. Created a C++ installer executable which will perform the installation (Basically extract the archived binaries to the…
Prasanna
  • 93
  • 10
2
votes
1 answer

UWP app.manifest default language not setting to en-US

I have 2 language .resw file set under string folder String -> en-US -> Resources.resw String -> fr-FR -> Resources.resw When i change my language to english or france, the behaviour is as expected. But when i change my language to Arabic, then the…