NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HxLink DID NOT INITIALIZE

/main (Specify Location of Sub Main Procedure)

Specifies the class or module that contains the Sub Main procedure. /main:namespace.location

Arguments

namespace.location
This argument can be either the name of a module or a class that contains the Sub Main procedure.

Remarks

Use this option when creating an executable or Windows executable program. If the /main option is omitted, the compiler will search for a valid Shared Sub Main in all public classes and modules.

Example

Compile t2.vb and t3.vb, specifying that the Sub Main procedure will be found in the Test2 class:

vbc t2.vb t3.vb /main:Test2

See Also

Visual Basic Compiler Options | /target:winexe | /target:exe