all groups > dotnet general > april 2008 >
You're in the

dotnet general

group:

ResXResourceReader



ResXResourceReader roryos
4/24/2008 7:45:01 AM
dotnet general: I am tryng to read a resource file using the following code and I am getting
an error stating that it can't find it in the C:\Windows\System32 directory.
I do not want to place it in that directory as I have it included in my
project as an embedded resource in a specific directory. I receive the error
as soon as it tries to perform the GetEnumerator.

Any ideas?

Here is a snippet of the code:

Private en As IDictionaryEnumerator
Private rsxr As System.Resources.ResXResourceReader

rsxr = New ResXResourceReader("menus.resx")
en = rsxr.GetEnumerator

Re: ResXResourceReader Kevin S Gallagher
4/24/2008 12:03:38 PM
You need to specifiy a path i.e.

rsxr = New ResXResourceReader("C:\SomePath\menus.resx")


[quoted text, click to view]

AddThis Social Bookmark Button