bweir
2007-04-24, 10:32 PM
I'd like to create a standalone program to read my CUI files. I'd like to be able to list the icons used from each file and also check for Lisp files being loaded either from the Lisp section of the CUI or from the Macro Code for a command/button. I know that .Net has technology to read XML files to an object but I don't know what object type to use for the CUI files. Is this a good way to approach this? What Class should be used for the CUI file?
Snippet I found in the VS...
Dim reader As New XmlSerializer(GetType(CUIClass))
Dim file As New StreamReader(FilePath)
Dim fileData As CUIClass
fileData = CType(reader.Deserialize(file), CUIClass)
Snippet I found in the VS...
Dim reader As New XmlSerializer(GetType(CUIClass))
Dim file As New StreamReader(FilePath)
Dim fileData As CUIClass
fileData = CType(reader.Deserialize(file), CUIClass)