Questions tagged [resource-file]

47 questions
2
votes
1 answer

Cannot use strings of resource file in Cordova Android Plugin

I have created a custom plugin for cordova android and I want to use a resource-file. Therefore I have added the following tag to the plugin However, this…
geisi93
  • 31
  • 4
2
votes
1 answer

How do I stop Visual C++ from using local machine locale settings in MFC .rc file generation?

When editing a resource in the Visual Studio resource view, I find that a lot of locale specific information is added to generated rc file. The locale information added is specific to whatever locale my machine is running at the time. It appears to…
MauriceL
  • 445
  • 5
  • 13
2
votes
2 answers

How can I avoid using magic strings when using ResourceManager.GetString()?

I have a resource file in a Class Library project. I'm using this resource file to hold various messages the user may end up seeing. For example, the name of the resource is "InvalidEmailAddress" and the value in the en-US resource file is "Invalid…
Sailing Judo
  • 11,083
  • 20
  • 66
  • 97
2
votes
3 answers

Visual Studio 2008 resource editor is annoying with PNG's

I have a resource DLL project in VS2008 that contains mostly PNG images. Every time I import a new image to the resource file, I get an RC2170 error: bitmap file is not 3.0 format, for every PNG that was previously in the resource file. Thing is,…
Beef
1
vote
2 answers

use a javascript from embeded resource of a custom control on a page

I have a custom server control which renders some HTML on the aspx page it is added. protected override void RenderContents(HtmlTextWriter output) { Text = GetHTMLContent(); output.Write(Text); } the GetHTMLContent()…
1
vote
1 answer

C# problem with dot in resource file

I'm having a little problem with a dot (.) in a resource file. In my global.resx file I have the value: Key: DSNLBuiltNo Value: DS.NLM + Built no When I display this in my Razor file with a @Html.Label(Global.DSNLBuiltNo) I only see NLM + Built no…
Patrick
  • 2,730
  • 4
  • 33
  • 55
1
vote
1 answer

Docusign Email Resource File

Im trying to change the contents of the emails that DocuSign sends for various events (i.e., Completed/Voided/Declined) by customizing the "Email Resource File" in the demo sandbox account. I even created a new brand in the name of "Sending Custom"…
Lokesh_Ram
  • 391
  • 4
  • 10
1
vote
0 answers

MFC resource-script file: Control description replaced by Control ID

I am maintaining an MFC project, there is something strange about the .rc file. I inserted an menu in Resource View and I added two items in this menu. Visual Studio assigns two IDs to these two items. Assume that the ID is 1000 and 1001. In…
YL.Qin
  • 11
  • 1
1
vote
1 answer

MVC Resource file non language

I have a MVC webapplication where two brands of the same company can login. Both companys have the same language but there are some small words that needs to be changed in the application self. So my idea is to switch (based on company value) the…
KevinKevin
  • 45
  • 8
1
vote
1 answer

How do windows resource files work?

I want to embed image files in my windows executable. The easiest way I have found is to use windows resource files. I generated resource.rc and resource.h using visual studio. Next step is to call these resources in my source code. What exactly is…
Cola
  • 2,097
  • 4
  • 24
  • 30
1
vote
2 answers

Mac Resource editor in Snow Leopard?

I have some OLD programs that I'm mantaining. They still use resource files with resource forks, and all that hideousness. My co-worker uses a 10.3 box that can still run mac classic programs and RezEdit. I used to use ReSorcerer, but it doesn't…
Brian Postow
  • 11,709
  • 17
  • 81
  • 125
1
vote
0 answers

Asp.Net Custom Resource Provider : non-updatable build

In my asp.net web site i'm using customized resource provider to fetch local resource information from database, It is working fine while i…
1
vote
1 answer

Same resource identifier in different language sections in an RC file, why is it possible?

I have noticed that an RC file can have duplicate resources (i.e. the same resource identifier), so long as they are in different language sections. For example, this compiles without errors in my rc file: #define IDS_STRING_001 10001 LANGUAGE…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
0
votes
1 answer

Silverlight Animation Storyboard in Resource File

Can a storyboard be placed in a resource file such as styles.xaml? I have a toolbar that will be reused across many pages. I have this working now with a page level resource:
Dan
  • 77
  • 1
  • 5
0
votes
1 answer

Searching/Listing WPF resource files?

Is there a way to search a WPF application for resources? I have added many images to an app and want to perform search i.e. MS*.jpg etc., Is this possible? If I could create a list of all the resources, that would surely be helpful as well, but I…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632