4
голосов
1ответов
1919 просмотров

Is including resource.h in precompiled header a good idea?

The VS-IDE will write //{{NO_DEPENDENCIES}} to resource header files. This comment is actually a feature that prevents (unnecessary) rebuilding of cpp files that include the resource header. But, like stated in the MSDN, this can lead to "undesirable side-effects". In our project we do have the...

0
голосов
1ответов
164 просмотров

Basing On a style defined inside a custom control library

I'm extending the available WPF's TreeView control. I wish to add to it CheckBox behavior like Josh Smith has suggested. My goal is to encapsulate all checkbox behavior concerns from the end user (which is a different approach of what Josh Smith has done). I would like to use a style for the Tr...

6
голосов
3ответов
12946 просмотров

How can I obtain the message resources object in a servlet?

I'm developing a project with Struts and I was wondering if it's possible to get the message resources object in a servlet, which is included in the same project. There's no possibility to get that object with the method getResources(HTTPServletRequest) because the servlet does not extends an Ac...

2
голосов
3ответов
476 просмотров

Create a wizard that works with multiple Resources

I'm writing an app that has a "wizard" type input section. Think MS Windows Installers. I'm having a hard time figuring out how the most RESTful way to do this with rails. I can make it happen in a non-restful way (already did for version 1 of the app), but I'm trying to be a little more idiom...

10
голосов
3ответов
6299 просмотров

best practices / tips for storing html tags in resource files

I have the following situation: assume I have to display the data in the following format. I am 20 years old. I need the number 20 to be in bold. I'm fetching this string from a resource file like this string.Format(HttpContext.GetGlobalResourceObject("ResourceFile","Key"),age); Should I co...

0
голосов
3ответов
830 просмотров

How to make XCode put required resources in "build" folder?

I am trying out lua script with C++ in Mac OS X. I was finding a way to make the program returning the current working directory. That's no problem with getcwd, but then I came one thing: My foo.lua stays at its initial path only. When I compile program, it is not being copied over to the build/...

3
голосов
4ответов
13007 просмотров

Kohonen SOM Maps in R Tutorial

I am simply looking for a good tutorial that will walk me through how to create a SOM in R. I am reading Kohonen and Kaski's paper on using the maps to identify the structure of Welfare, and want to try the technique my self. I think many of the examples in R have a lot to be desired. I have l...

0
голосов
3ответов
606 просмотров

Suggestions on addressing REST resources for API

I'm a new REST convert and I'm trying to design my first RESTful (hopefully) api and here is my question about addressing resources Some notes first: The data described here are 3d render jobs A user (graphics company) has multiple projects. A project has multiple render jobs. A render job ha...

0
голосов
3ответов
95 просмотров

Resources To Build a Framework

I'm thinking in create a framework, a little project with my friends, just to loose some time trying to build something, but we don't know where and how to start, then we are needing to know two things: Which languages is possible to do this? Where we can found some resources to begin(tutorials...

8
голосов
2ответов
4522 просмотров

Do I need afxres.h, if I am not using MFC? How do I remove it from the .RC script?

I don't know RC scripts. I want to include Product version, File version, etc. metadata into a DLL I'm building. I'm using an .rc file to do that. The build is makefile driven. I'm following along with an example .rc scrpit I found. The template .rc file includes afxres.h , but I don't thin...

0
голосов
2ответов
214 просмотров

OpenID implementation in PHP

I am considering implementing OpenID on my website and I am having a hard time finding good resources for OpenID implementation in php. So far I have only found RPX but I don't want to depend on third party vendors. I want something similar to SO , can anyone point me in the right direction and c...

2
голосов
1ответов
446 просмотров

Clear/ Reset Resource Provider

How do you get access to the Resource Provider for the current context? I have a web page that allows a client to edit their Globalization values which are stored in SQL. However pages still utilize the cached values until the app domain is freed. How can I force clear/reset the provider and o...

0
голосов
2ответов
2556 просмотров

Android: Any idea why cannot load drawable object?

There are several custom-made graphic objects (.png files) included in the project inside res/drawable map. All elements are normally loaded and displayed in the user interface except two icons and so far haven't figured out what causes the problem. The code which doesn't affect the user interf...

1
голосов
1ответов
1456 просмотров

C# - UpdateResource - To Remove A Resource

I am able to successfully add a resource to a file using UpdateResource and then remove it using: UpdateResource(HANDLE, "TYPE", "NUMER", 1033, IntPtr.Zero, 0); When I add a resource to the file it will add another even though there is an existing resource exactly the same, also I cannot remove a...

4
голосов
3ответов
479 просмотров

Rebranding Application Resources in .NET 2.0

I'm about to start writing a tool in .NET 2.0 (C#), and the tool needs to be re-brandable to be sold for use by other companies. We'll compile the tool in house, with other company's resources, so they don't get the source, just the generated output. Since the re-branding will use the same defa...

2
голосов
1ответов
1575 просмотров

Mocking ResourceManager in .NET

We have a small wrapper class that uses ResourceManager to load string resources from assemblies. We also have some unit tests that check it loads the correct details from the correct assemblies for different cultures, assemblies etc. Our tests are therefore currently dependant upon resources...

1
голосов
1ответов
696 просмотров

Blend not rendering images in User Control

I am developing a WPF application, and I have created a user control called ViewIconUC. This control lives in an assembly (MyControlAssemblyUI). I can instantiate the control in a ZAML page within this control, and I get no errors (I even attached the dugger to Blend to check), and I can see the ...

6
голосов
7ответов
12093 просмотров

Visual Studio - Tool to replace hard coded strings with resources

I have a big ASP.NET project full of hard coded strings, that now have to be extracted to resources. Such strings can be found almost anywhere (in .cs files, .aspx files, .ascx files, etc.) and the amount of files is huge. What I'm looking for is a tool (or any way) to find all these hard coded s...

7
голосов
4ответов
1320 просмотров

Catch missing local resources in resx files

I have many resource files, in many different languages. Lets suppose for example we are supporting 3 languages (en, de, fr), and have this file: common.resx common.de.resx common.fr.resx I would like to detect occurrences when for instance a resource is requested in de, but is missing and so ...

1
голосов
1ответов
1435 просмотров

WPF - Clearing only certain Resource Dictionaries

I am applying "themes" to my WPF app by clearing all merged dictionaries (Resources.MergedDictionaries.Clear()) and new ones based on the selected theme. Instead of clearing all dictionaries, I would like to clear only certain "theme-related" dictionaries, leaving others still loaded. How can ...

3
голосов
2ответов
4178 просмотров

How to delete resource entry from resx in C#?

I know how to retrieve and create resource entries in an .resx file programmatically. I'm using the ResourceWriter and the ResourceReader for that approach. But now I want to clean up several items in my .resx file, and want to delete them. How can I achieve that?

6
голосов
4ответов
22356 просмотров

How to replace the default ModelState error message in Asp.net MVC 2?

I need to replace the model state resource (to another language). I've seen some answers to the question above, but unfortunately I could'nt make it work. Any detailed answer or example would be appriciated. Thank you.

1
голосов
2ответов
2262 просмотров

Resource scheduling application

I'm trying to implement an application that coordinates multiple users who are scheduling exclusive resources. The schedule data must maintain strong consistency over a network with a single master node. The scheduled resources could be anything from a conference room to a worker on a job site. ...

3
голосов
2ответов
2687 просмотров

App domain restarts when .resx file changes. Any way to avoid this?

I have an ASP.NET app with many .resx (resource) files used for localized user controls and pages. We would like these files to be editable on-the-fly. However, we have noticed that editing these files on the web server causes the app domain to reload, which causes the server to slow down for a...

2
голосов
6ответов
1852 просмотров

ASP.NET website deployment best practices resource suggestions

I have looked through the related questions, and none of them have provided me the information I am looking for. Currently the team I work on does deployments of individual .aspx (and .aspx.vb) files for bug fixes/enhancments. I am trying to affect change, as I really believe that deploying the...

0
голосов
1ответов
519 просмотров

How to obtain the correct ResourceManager object

Im making a asp.net(2.0) website. I have defined two resource files in the App_GlobalResources folder 1) Website.ar.resx 2) Website.en.resx Im trying to obtain the ResourceManager programatically. Now, if I would have only defined Website.resx, VisualStudio automatically starts showing me a ...

1
голосов
3ответов
1933 просмотров

WPF Style.Trigger

Somebody can tell me why this trigger doesn't work: <!--Style--> <Style x:Key="Test" TargetType="{x:Type Expander}"> <Style.Triggers> <Trigger Property="IsEnabled" Value="false"> <Setter Property="IsExpanded" Value="false...

4
голосов
3ответов
5242 просмотров

Create a new resource bundle in Grails?

I'd like to create another resource bundle to organize my Grails app. Grails provides a 'messages' resource bundle and I need to create a 'myApp' resource bundle. How can I create a new resource bundle and read its properties with the 'g:message' GSP tag?

0
голосов
2ответов
256 просмотров

Software Design Pattern for resource libraries?

Is there any pattern (software design pattern) for loading images or message strings from resource files?

5
голосов
2ответов
480 просмотров

Link to external texture file in self-contained XAML representing a 3D model

I have a XAML file representing a 3D model with textures. I want to make the textures read from the same place the file is, or relative to it. I read the file using a XamlReader, so I want the file to be self-contained. I place the textures using an ImageBrush which ImageSource is a pack synat...