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

NetBean 7, how to create a folder for images?

I have created a project, inside the project there is a folder named Source Packages, which contains my packages. I need images, and I want to copy them in a folder inside the project (or better inside the Source packages), so that when I create the…
AR89
  • 3,548
  • 7
  • 31
  • 46
3
votes
1 answer

Localization using resources file not working

I added new Rosource file UserNotification.resx. Then I added two files for localization and named it UserNotification.hr-HR.resx and UserNotification.sl-SI.resx. (followed thread: How to use localization in C#) Then I changed Windows language's to…
davor
  • 939
  • 2
  • 14
  • 31
3
votes
1 answer

Spring-Boot: How to load a keystore resource file either from the classpath or from the file system?

My spring-boot application requires access to private keys via a Java keystore. For testing, I would like to use a test keystore that is available on the classpath (so I can easily execute the application as part of an integration test), while in…
3
votes
2 answers

Reading a Hebrew string into VB6 from a DLL res file

I created a String Resource .RES file in Visual Studio 2019 with various string tables for multiple languages, then I compiled the .RES into a VB6 DLL (no code, the VB6 project is just a compiled VB6 DLL). Here is the no-code VB6 project that…
JeffR
  • 765
  • 2
  • 8
  • 23
3
votes
2 answers

Localization is not working building the application in Release mode with docker-compose (Docker for Linux) in VS2017

I am developing an application in Asp.net core that uses some translations depending on the language of the user. In my controller, I am trying to load the error message from a .resx file. I have multiple ones depending on the language: …
3
votes
1 answer

How to read resourcefile from dll c#

I would like to use resourcefiles to get some text.These resourcefiles will be in dll.It's nothing todo with localization just in case you ask. I want to have the ability to choose which rexfile to use based on a…
developer9969
  • 4,628
  • 6
  • 40
  • 88
3
votes
0 answers

Android Studio(v 2.1.3) doesn't recognize strings.xml as resource file

Unfortunately, Android Studio's stopped recognize strings.xml file as resource file for all my projects. So now each string, which declares in strings.xml, in the source code emphasizes with red line. Renaming of strings.xml file or reinstalling…
3
votes
1 answer

Storing large text containing functions and hyperlinks in resource file

Please help me I am struggling with one issue that I am not very much familiar with that is using resource file in asp.net. I am working on code in asp.net which is checking multiple if conditions in business layer class and on the basis of if…
LAnand
  • 33
  • 6
3
votes
1 answer

Meaning of Ampersand(&), in .rc files

When coding Windows Applications using WIN32 on Windows, to non-dynamically load resources, one must load a *.rc file, which contains resource definition statements meant for defining common features in apps, such as buttons and menus. While reading…
Arnav Borborah
  • 11,357
  • 8
  • 43
  • 88
3
votes
1 answer

How to reference resources file from webapplication in dll's

We are using mvc 5 and we want to use resource files for our localization. We have a dll used by many customer applications in which we would like to place some defaut view models: The ViewModel now looks something like this: public class Person { …
k.c.
  • 1,755
  • 1
  • 29
  • 53
3
votes
1 answer

ASP.NET: two ways to access global resource programmatically

I know that I can set a Label's text by using the following syntax. lblMessage.Text = (string)GetGlobalResourceObject("resxFile", "message"); What are the benefits and drawbacks associated with using the below syntax? lblMessage.Text =…
400_the_cat
  • 873
  • 3
  • 16
  • 29
3
votes
1 answer

Android auto update resource files through developer console

My Android app has raw files in resource folder from which I retrieve data that is crucial to my app. These resource files needs to be updated from time to time if not often. Is there a way to achieve this through Google update mechanism…
3
votes
1 answer

Makefile.am: How to Add rule for new extension?

I'm trying to modify an existing makefile.am to include a rule to convert the *.rc extension into a resource file. Here's as far as I can currently get. mytarget_SOURCES += ico.rc .rc.o: windres -i $< $@ As is described here:…
MicroVirus
  • 5,324
  • 2
  • 28
  • 53
3
votes
4 answers

Resource based on objects in WPF

In a separate project I have a de-serialized xml file with strings that I want to use in my WPF application, these strings are also used within a different project in the same solution, so I can't just move the strings over to the project holding…
Electric Coffee
  • 11,733
  • 9
  • 70
  • 131
3
votes
1 answer

mapping constants to resource strings for lists population and lookup

After an extensive search here I still need an expert advice: Requirements Requirements are pretty standard: map int consts to strings from resource files so localization will work fine and we can easily create a list of value pairs for dropdown…
serop
  • 1,138
  • 12
  • 13