
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.