Questions tagged [resource-file]

47 questions
9
votes
1 answer

How can I get all images from a qrc file?

I want to get all images from my qrc file and pass them to a ComboBox. Don't know what to say more. It's a very basic task I think but I can't find a solution.
yokmp
  • 145
  • 2
  • 10
9
votes
2 answers

VC++ 10 MFC: What is the correct way to do localization

I am a .NET guy who is having to do some work on an MFC app. The app is a VS2008 MFC executable which I have converted to VS2010. The original developers did localisation by specifying the name of a .txt file with key value pairs in it on the…
MrLane
  • 1,728
  • 22
  • 41
8
votes
7 answers

Convert a Visual Studio resource file to a text file?

I know there are tools to get text files to resource files for Visual Studio. But I want to get the text from my resource files to a text file so they can be translated. Or is there a better way to do this?
nportelli
  • 3,934
  • 7
  • 37
  • 52
8
votes
1 answer

Programmatically change resource file language (resx) in Code Behind

I have a .Net application in C# and I have a file structure something like: App_LocalResources - MyPage.aspx.resx - MyPage.aspx.fr.resx MyPage.aspx MyPage.aspx.cs I am trying to programatically change the language which tells the application…
Sherri
  • 816
  • 2
  • 9
  • 18
7
votes
4 answers

Is it possible to embed and run exe file in a Delphi executable app?

Resource files (.RES) accept any kind of binary files but if it is an exe file how can I run it?
isa
  • 1,055
  • 16
  • 26
7
votes
7 answers

Error message in MFC/RC on VS2008 - "Add/Remove operation is impossible, because the code element 'Cxxxx' is read only"

I have searched online and get inconsistent answers that don't fix the problem for me. I created a dialog box and then clicked ont he wizard to create a class for me. Unfortunately it named the class and file badly badly so I renamed the file. …
Tim
  • 20,184
  • 24
  • 117
  • 214
6
votes
2 answers

Duplication of TEXTINCLUDE sections in .rc file

In my .rc file I found that I have the 3 TEXTINCLUDE sections repeated twice, with different content. When I open "Resource Includes", only the includes from the first 3 sections are shown. I've tweaked the .rc a long time ago, so it maybe is a…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
4
votes
1 answer

Specifying custom resource file for an ASP.NET page/usercontrol

If I have a page called Default.aspx, ASP.NET automatically uses the resource file named Default.aspx.resx in App_LocalResources for localizing server controls in the page. But for some reason, I need to choose another file, let's say…
r_honey
  • 883
  • 4
  • 15
  • 31
4
votes
2 answers

How can I get correct string localization when running my unit tests?

I have a project that needs to support French and English. I put all strings into resource files. When I debug the program in Visual Studio, I can successfully view the program in French. However, when I run the tests for the program, the program…
user1438430
  • 41
  • 1
  • 2
3
votes
1 answer

Concatenate string and constant in resource file in C++ (MFC)

I have a C++ project with MFC and a resource file. In my About-Dialog I want to add a constant which contains the version of the programm. IDD_ABOUTBOX DIALOG DISCARDABLE 34, 22, 237, 65 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION |…
Premox
  • 323
  • 10
  • 25
3
votes
2 answers

File inside resource cannot find local file

I have a project with several QML files. All of them are inside resource file. Now I want to load external image, from local file system. But I cannot find a way to do that. Image { source: "images/image.png" // that tries to load file as…
folibis
  • 12,048
  • 6
  • 54
  • 97
3
votes
1 answer

How to access files specified in a .qrc file from the c++ code?

I created a .qrc file in Qt 5.0.1: 105.ico and I edited my .pro file: RESOURCES += \ Icons.qrc when I use the code below in my class constructor icon doesn't appear …
Aidin.T
  • 731
  • 3
  • 10
  • 25
3
votes
1 answer

Getting text from the Resource file in asp.net 4

i have an asp.net webpage, which contains a label, now i want to get the text property of the label from the localresource file, i have a .resx file under App_LocalResources folder, which contains Name as UserNameLabel.Text and Value as User Name…
Abbas
  • 4,948
  • 31
  • 95
  • 161
3
votes
2 answers

Delphi: Loop data in resource file

I need to loop inside a resource file and and load all BMP files with the following statement; bBitmap.Handle := LoadBitmap(hInstance, 'IMAGE_NAME'); How do I loop a resource file; do I have to do a regular IO operation and treat it like a text…
Alex
  • 367
  • 2
  • 4
  • 15
2
votes
1 answer

How to override resource file defined in a Jar?

In a file structure of standard J2EE Web application, I want to override a key-value message pair that defined in a resource file that reside in an imported Jar. I know that I need to create a resource file with the same name of which I want to…
didxga
  • 5,935
  • 4
  • 43
  • 58
1
2 3 4