Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Embedded resx file
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Reading Embedded resx file
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01018281
Message ID:
01018281
Vues:
42
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform