resources

.net databinding external resource dll

Hi, for localizing purpose I wonder how to databind the text properties of controls e.g. buttons in a C# .NET windows application to an external resource..? Currently I created a resource, containing a table like ButtonText1 - "Value1" ButtonText2 - "Value2" ... and compiled it as an embedded resource to a DLL. In my windows appl...

Open a Word template from resource with interop word

So, I have this word template as a resource in my application. I want to open it to create new documents, but have no idea how to do this. The following code doesn't work obviously, since the add method requires a filepath (and not the resource byte[] object... object tFalse = false; object missing = System.Reflection.Missing.Value; Wo...

Getting the available languages of the application dynamically

Is it possible to find dynamically what are the languages supported by the application? For example, I have strings for the following languages: English, French, Dutch and German. They are defined in their corresponding res directories: values, values-fr, values-nl and values-de. I want to give the user the possibility to choose between ...

Override the neutral language of a specific resource file within an assembly

I have an assembly that contains several resource files. Most of them have the neutral language 'nl' (Dutch, specified on the assembly as the neutral language), so I don't specify the 'nl' in their filenames. However, I'm putting strings in the English language in some other resource files (they are internal error messages) and I will ...

Loading "custom resources" in Zend Framework 1.10

Everything was working fine in 1.9.6. I changed to 1.10 and now I have a lot of Warning for basically every Application Resource. It looks like the ZF is looking for Application Resources in the "custom resources" path that I set up from: pluginpaths.App_Application_Resource = "App/Application/Resource. Is there any way to avoid this!?...

How to use external fonts?

Hello, Is it possible to use a font directly from resources in Delphi and how? I have a problem with the very first steps.Example I cannot include Segoe UI Light font in resources of a project,an exception occurs.And that is only if the file's extension is 'ttf'. If the written above is not possible then how do I use an external font ...

Common JNDI resources in Tomcat

Hi, I’m running a couple of servlet applications in Tomcat (5.5). All of the servlets use a common factory resource that is shared out using JNDI. At the moment, I can get everything working by including the factory resource as a GlobalNamingResource in the /conf/server.xml file, and then having each servlet’s META-INF/context.xml file ...

Resources for faster programming

Possible Duplicate: As a programmer what single discovery has given you the greatest boost in productivity? This is a community wiki to get a list of resources, that you consider helped you, to do faster programming, such as macros, intellisense, autotext replacer etc... I will start the list with the following: using two m...

User Settings vs Application Settings vs Resources in Visual Studio 2008

I'm a little confused by the different ways visual studio allows dynamic values to be saved to a project, and how they are intended to be used. I understand that if I need to include binary information like an image or a sound file with my application I need to add that to a resource file. But if I'm saving something like a file path as ...

Delphi RES files and Git

Hi! I have a big project written in Delphi and I want to manage it's sources using Git. I created Git repository, which includes my application's sources and 3rd party components. All that stuff is automatically building using msbuild. The biggest problem is RES files. Some of them are updated every time I rebuild my application, some ...

Can you limit the processing resources that an application can use in .NET

I would like to write a .NET application that runs in the background (stays down in the taskbar) and does a long operation like copying folders of files from one location to another. I want to write it in such a way that other applications that are running don't slow down much. I don't care how long the background app takes. Is there a w...

.NET Custom Control Resources.resx

I have a C# custom control that loads images from Resources.resx. I was loading this resources into the Project's Resources and then accessing them like: ProjectNamespace.Properties.Resources.resourcename; This works for one project but now I want to use my control in multiple projects. What's the best way to handle this? Load th...

Override resource string in compiled assembly

Is there any way for me to override the values that are stored in a third party assembly in an embedded resource file? Using Red Gate's .Net reflector, I can see there are 6 resource items, but I only want to change to of them when using it in my web application. ...

Location of Xcode icons

I was taking a look at the Xcode bundle and noticed that some of the icons visible on the UI don't exist there, eg, the Run button with the hammer on top. Where would they be? Where else can you store resources in a Cocoa application? ...

How can I use resources in ASPX-files?

I use a WebResources.resx to translate all strings in the Web UI. It works like: <asp:Button ID="Button1" runat="server" Text="<%$ Resources:WebResources, Button1Caption %>" /> But if I try to use the onClientClick-Attribute, the string will not be resolved. What's wrong? Or how can I do it right? <asp:Button ID="Button1" runat="ser...

Can't access font resource in Silverlight class library

I have a reasonably large Silveright 3.0 project on the go, and I'm having issues accessing a couple of custom font resources from within one of the assemblies. I've got a working test solution where I have added a custom font as a resource, and can access it fine from XAML using: <TextBlock Text="Test" FontFamily="FontName.ttf#Font Na...

How to Access External Resources from Website Aspx

My current solution consists of several Class Libraries and a Website. I'm in the process of globalizing the application and I realized that my resources need to be accessed by all the projects not just the website so placing my resources in the App_GlobalResources folder didn't work. I added my resources to one my class Libraries and ...

How to prevent accessing unauthorized user to resource such as .pdf file in host ?

Hi At the moment in my ASP.NET webApp I have some resources such as some .pdf files or pictures in specific folder in the host . If any user know the URL of those files can access them from the browser , How can i manage access or ban anonymous user from those files ? ...

reference counting with cycles in C++ smart pointer

Hi In shared_ptr smart pointer, reference counting is used. However, reference counting has a problem, that it can't break cycles of reference. I have four questions with this issue. 1) Could anybody offer me one snippet in which the cycles of reference happened? 2) If it can't break cycles of reference, how does RCSP guarantee succ...

How to use DataAnnotations ErrorMessageResourceName with custom Resource Solution

I'm building a MVC web application with C#. Since the site will be multilingual, I've implemented my own ResourceManager. This class is responsible for fetching the required resource strings from a database/cache depending on the currents thread culture and works fine so far. My problem is, I'd like to use the my custom ResourceManager...