Using "embedded resources" 
Author Message
 Using "embedded resources"

Hi,

Currently I know how to load files integrated into my solution as embedded
resources, like this:

Dim gresMan = Ad New ResourceManager("namespace",
System.Reflection.Assembly.GetExecutingAssembly)

Dim gresStream As Stream
gresStream =
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("N
AMESPACE.filename")

The problem is that if for example, I have several localized files:

units.xml (the default one)
units.es.xml (spanish localization)

When I try to load the resource it always uses the default one, no matter
the current OS language or even if I try to override the culture info:

GetManifestResourceStream("MyNamespace.units.xml")

That always loads units.xml, NEVER units.es.xml, which is what it's supposed
to load on a spanish language OS...

ANY help is appreciated (I have weeks trying to solve this issue).

Regards,
Ivan V.



Sun, 12 Dec 2004 03:13:06 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. "Make Project" runs embedded ActiveX controls

2. Help - "Embedded image moved" error

3. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

4. "Multimedia Resources"

5. "required resource already in use"

6. MS Resource Localization Toolset: "RLTools"

7. Limited "Resources": What to avoid???

8. Changing Language in "Resource File"

9. Changing Language in "Resource File"

10. Help with "Resources"

11. GetObject("","InternetExplorer.Application") fails in Excel VBA

12. SysCmd 603, "path","path"

 

 
Powered by phpBB® Forum Software