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

/define (Preprocessor Definition)

Defines conditional compiler constants.

/define:name=value[,name=value]

-or-

/d:name=value[,name=value]

Arguments

name
The name of one or more symbols that you want to define.
value
The value to assign to the symbol.

Remarks

The /define option has the same effect as using a #Const preprocessor directive in your source file.

You can use symbols created by this option with the #If...Then...#Else Directive to compile source files conditionally.

/d is the short form of /define.

You can define multiple symbols with /define by using a comma to separate symbol names.

Example

Define two conditional compiler constants:

Vbc /define:DEBUGMODE=True,TRAPERRORS=False test.vb

Use the two constants:

Sub mysub()
   #If debugmode Then
      '. Place debug statements here.
       MsgBox("debug mode")
   #Else
      '. Place default statements here.
      '.
   #End If
End Sub

See Also

Visual Basic Compiler Options | #If...Then...#Else Directive