Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Embedded resx file
Message
 
To
All
General information
Forum:
ASP.NET
Category:
XML
Title:
Reading Embedded resx file
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01018281
Message ID:
01018281
Views:
41
I have a resx file that I need to read into a sorted list. I am having no problems reading it from file, but I would like to embed it into the exe. The following code works great (it reads from the file Dict.resx) and loads it into the list image sorted list):
        'READ & LOAD DICTIONARY
        Dim readerx As New ResXResourceReader("Dict.resx")
        Dim en As IDictionaryEnumerator = readerx.GetEnumerator()
        Dim t As Int16
        While en.MoveNext()
            If Microsoft.VisualBasic.Left(en.Key, 3) = "Img" Then
                listImage.Add(en.Key, en.Value)
            End If
        End While
        readerx.Close()
Now, how do I access the resx contents when it is an embedded resource? I have tried using a system.io.stream instead of the file, but it does not seem to work....

Thank you very much for your help!

-R!
Ricardo A. Parodi
eSolar, Inc.
Reply
Map
View

Click here to load this message in the networking platform