PDA

Click to See Complete Forum and Search --> : Icon Resource Error


kleptos
Aug 11th, 2003, 10:16 AM
I am working on a keygen (dont get the wrong idea, its for an encryption algorithm example from Microsoft, not a tool for illegally stealing software) and i am building it using the .NET Framework, and not VS.NET or any IDE. Below is the code to compile the application on the command line. When i compile, everything runs great. However when i run the exe i get an error(see below). If i got my code right, it should use the embeded resource App.ico as the icon for the form, or so i thought, but i get this error. Any help would be appreciated.


csc /t:winexe /out:Keygen.exe /res:App.ico /r:Crypto.dll /win32icon:App.ico Keygen.cs AssemblyInfo.cs



this.Icon = new Icon(GetType(),"App.ico");


http://www.animatedtoys.com/misc/keygen_error.gif