// (c) 2005 Richard Grimes // www.grimes.demon.co.uk // First parameter is the name of the icon in the .resx file // Second parameter is the name of the cursor file using System; using System.IO; using System.Resources; using System.Windows.Forms; class App { static void Main(string[] args) { if (args.Length < 2) return; using (ResXResourceWriter writer = new ResXResourceWriter(Console.Out)) { using (FileStream fs = File.OpenRead(args[1])) { Cursor cursor = new Cursor(fs); writer.AddResource(args[0], cursor); cursor.Dispose(); writer.Generate(); } } } }