473,394 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Embedding resources

The LocalizedHelloWorld sample in help shows how to embed the default
resource into the main assembly. Is this really required? Can we not d this
and always require satellite assemblies? I tried this, but for some reason,
I could not provide the "correct" name to the resource manager, therefore it
did not know how to pick up the resource from the satellite assembly.

Any help is appreciated.
Nov 15 '05 #1
1 2047
Technically yes, you do not need to place any resources in the main assembly
and always require a satellite assembly. However, in most cases developers
have 'primary' language that they target (here in the US, it tends to be
English). By placing the English resources in my main assembly I can
accomplish 3 goals:
1. Reduce the number of files I send to customers (and also reduce the total
size of my application of component on disk)
2. Increase the robustness of my application or component. If the 'default'
resources are embedded in the main assembly, and my assembly accidentally
gets copied/installed without a proper satellite assembly, it will still
work correctly (except it will output in the wrong language). I believe in
most cases consumers would prefer output in the wrong language rather than
no output.
3. Increase performance for the 'default' case by reduce the memory
requirements (there is overhead in the PE file format), and also decrease
resource loading time (since it will not have to find and load a different
file)

I'm not sure what you mean by the "correct" name. If you provide more info,
maybe I can help.

--
--Grant
This posting is provided "AS IS" with no warranties, and confers no rights.
"Havic Ploccin" <no.email@please> wrote in message
news:e7**************@TK2MSFTNGP12.phx.gbl...
The LocalizedHelloWorld sample in help shows how to embed the default
resource into the main assembly. Is this really required? Can we not d this and always require satellite assemblies? I tried this, but for some reason, I could not provide the "correct" name to the resource manager, therefore it did not know how to pick up the resource from the satellite assembly.

Any help is appreciated.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Robey Holderith | last post by:
Anyone know a good way to embed python within python? Now before you tell me that's silly, let me explain what I'd like to do. I'd like to allow user-defined scriptable objects. I'd like to...
1
by: Martin | last post by:
Greetings, I am new to python and wish to embed python in an 3D graphics application to provide application automation. The high level goal is to be able to drive my app from a script for batch...
2
by: Roose | last post by:
With some googling I have found these resources: http://docs.python.org/ext/win-dlls.html http://www.python.org/doc/faq/windows.html I have a large Win32/MFC/C/C++ application that has an...
13
by: Rolf Magnus | last post by:
Hi, I would like to embed a python interpreter within a program, but since that program would be able to automatically download scripts from the internet, I'd like to run those in a restricted...
3
by: Praveen | last post by:
Hi, I have a control that currently embeds it's images and script files as resources (by marking them as 2.0's WebResourceAttribute) and lets the runtime handle the streaming of the files to the...
0
by: Mike Chamberlain | last post by:
Hi there. I'm trying to embed a flash movie in my .NET 2.0 form. However, all I see is a white square, no movie is playing. I have done the following: * added a reference to the...
11
by: Dave Brown | last post by:
Hi there. Does anyone know if it's possible to embed a new resource into an assembly at runtime as well as update an existing (assembly) resource. Any assistance would be appreciated. Thanks.
3
by: Bob Trabucco | last post by:
Hello all, I have a ASP.NET website written using VS 2003. I am in the process of migrating it up to 2005. There is one problem I just can't seem to solve. In my original VS 2003 project I...
0
by: Brett Romero | last post by:
I can build a winexe using Nant without problems. If I add a Resources.resx file with images in it and reference those image on a form, I can't build correctly. The build success but the program...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.