XPMenus: Using RESGEN to compile resources

I am trying to use RESGEN to compile the resources for a form that uses XP menus. The problem can be demonstrated by compiling and then decompiling resources by running RESGEN on MainForm.resx in the XPMenus MDI Sample. RESGEN MainForm.resx MainForm.resources RESGEN MainForm.resources MainForm.copy.resx gives the error: ResGen : error RG0000: Error while writing the output file "MainForm.copy.resx" ResGen : error RG0000: Specific exception: "InvalidOperationException" Message: "Item named ''barManager1.BarPositionInfo'' of type ''System.IO.PinnedBufferMemoryStream'' cannot be added to the resource file because it is not serializable." Does anyone have any ideas how to compile these resources using RESGEN?

1 Reply

MJ Mano J Syncfusion Team March 17, 2006 03:45 PM UTC

Hi Paul, Are you converting the resources for a VS2005 application? I can able to see the same problem when I used the resgen utility in VS 2005 installed path (C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ResGen.exe). However, when I use the resgen utility in VS2003 installed path (C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\ResGen.exe), it succesfully compiles and decompiles the resources. Could you please try using the VS 2003 Resgen utility and let me know if you are able to see the problem. Regards, Mano

Loader.
Up arrow icon