Using file resx HELP

  • Thread starter Thread starter Alessandro
  • Start date Start date
A

Alessandro

Hi, i have a project with a file field.resx, this file has this structure:
<data>
<FIELD_ID>1</FIELD_ID>
<FIELD_Name>Date</FIELD_Name>
<FIELD_Order xmlns="">1</FIELD_Order>
<FIELD_Removable xmlns="">false</FIELD_Removable>
<FIELD_Visible xmlns="">true</FIELD_Visible>
</data>
<data>
<FIELD_ID>2</FIELD_ID>
<FIELD_Name>Title</FIELD_Name>
<FIELD_Order xmlns="">2</FIELD_Order>
<FIELD_Removable xmlns="">true</FIELD_Removable>
<FIELD_Visible xmlns="">true</FIELD_Visible>
</data>


i'm not able to read those complex data with system.resources class: anyone
can help me ?
 
It's not enough to give the file .resx extension. If you want to work with
it using Resource reader, it must conform to the appropriate schema. Why
don't you simply use XmlDocument or XmlTextReader class instead?
 
Ok, i have created a normal file resx, in a class library for business
Logic.

When i try to use this code:
Dim oReader As System.Resources.IResourceReader

oReader = New System.Resources.ResourceReader("formats.resx")

But i have an io error, "file not found"......, any idea ?
 
You need to address the file using full path as there is no concept of
current directory in the Windows CE.
string resPath =
Path.GetDirectoryName(Assembly.GetExecutingAssembly()GetModules()[0].FullyQu
alifiedName) +
"\formats.resx";
 
Back
Top