The -win32icon option inserts an .ico file in the output file, which gives the output file the desired appearance in the File Explorer.
-win32icon:filename
filename | The .ico file that you want to add to your output file. |
An .ico file can be created with the Resource Compiler. The Resource Compiler is invoked when you compile a Visual C++ program; an .ico file is created from the .rc file.
See -linkresource (to reference) or -resource (to attach) a .NET Framework resource file. See -win32res to import a .res file.
1.Open the project's Properties pages.
2.Click the Application property page.
3.Modify the Application icon property.
4.Click here to see the property page
Compile in.prg and attach an .ico file rf.ico to produce in.exe:
xsc -win32icon:rf.ico in.prg