ResXResourceReader

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
roryos [ Do, 24 April 2008 16:45 ] [ ID #1949115 ]

Re: ResXResourceReader

You need to specifiy a path i.e.

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


"roryos" <roryos [at] discussions.microsoft.com> wrote in message
news:B0097F26-8B7D-4EAF-B525-801E9B2648CB [at] microsoft.com...
>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
>
>
Kevin.S.Gallagher [ Do, 24 April 2008 21:03 ] [ ID #1949118 ]
Microsoft » microsoft.public.dotnet.general » ResXResourceReader

Vorheriges Thema: windows service problem
Nächstes Thema: Microsoft Backup doesn't see external drive while Explorer does se