Create a Subsystem

To create a subsystem, you must first create one or more source files as you would for any other program. Subsystems can be written in C or C++. No special file extension is required.

To compile your source files into a subsystem, use the /Rn compiler option to select the subsystem libraries. When you use this option, the compiler does not generate the external references that would build an environment. The subsystem libraries are also specified in each object file to be linked in at link time. The default compiler option is /Re, which creates an object with a runtime environment.

If you are creating a subsystem DLL, you must use the /Ge- option in addition to /Rn. You can use either static linking (/Gd-), which is the default, or dynamic linking (/Gd+).

Restrictions When You Are Using Subsystems



Subsystems