Show/Hide Toolbars

XSharp

The -win32res option inserts a Win32 resource in the output file.

Syntax

-win32res:filename  

Arguments

filenameThe resource file that you want to add to your output file.

Remarks

A Win32 resource file can be created with the Resource Compiler. The Resource Compiler is invoked when include native resources (.RC files) in your X# Visual studio solution

 

A Win32 resource can contain version or bitmap (icon) information that would help identify your application in the File Explorer. If you do not specify -win32res, the compiler will generate version information based on the assembly version. You can also include Menu and Dialog definitions in a RC file.

 

See -linkresource (to reference) or -resource (to attach) a .NET Framework resource file.

 

To set this compiler option in the Visual Studio development environment

You cannot set this compiler option inside Visual Studio. If your application has native resource files, then the build system will automatically convert this to a nativeresources.res file and include this file with The -win32res command line option in your assembly.

Example

Compile in.prg and attach a Win32 resource file rf.res to produce in.exe:

 

 

xsc -win32res:rf.res in.prg