qck.hlp (Table of Contents; Topic list)
Relinking MASM code
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Relinking MASM code
 
 ■ Sometimes after recompiling an old program with the Visual Basic Compiler,
   an assembly language subprogram will hang when called. If the subprogram
   was working fine previously, the most likely problem is an END (label)
   assembly directive in the MASM file. Such an END label indicates that the
   assembly module is the main module; this usually means that the program
   was not initialized properly.
 
 ■ To eliminate the problem, remove the label and reassemble. If the label
   cannot be removed from the END directive, do not use this program with
   Visual Basic.
 
 ■ Here is an example of the END (label) directive:
 
         code     segment  byte    public  'code'
         .
         .
         temp     proc     far
         .
         .
         temp     endp
 
         code     ends
 
                  end      temp     ; The "temp" label should be removed