Microsoft KB Archive/92457

From BetaArchive Wiki
Knowledge Base

"Syntax Error in Module Definition File"; 'segmentname'

PSS ID Number: 92457

Article Last Modified on 1/8/2003

The information in this article applies to:

  • Microsoft Visual Basic for MS-DOS 1.0

This article was previously published under Q92457


When using Link Overlays in Visual Basic for MS-DOS, you will get the error: "Syntax error in module definition file" if you have incorrectly defined the 'segmentname' of your Basic source file.


On Page 31 of the "Professional Features" manual, 'segmentname' is described as the following:

"The name of the Basic source file. It must appear between single quotation marks; do not include the extension. Finding the 'segmentname' for non-Basic source files is explained below."

The documentation omits describing how to define the 'segmentname' of a Visual Basic for an MS-DOS source file.

The 'segmentname' in the definition (DEF) file should be the base name of your object (.OBJ) file, plus the extension "_code". For example, given the filename 'mod1.obj', the 'segmentname' would be 'mod1_code'.

Additional query words: VBmsdos 1.00

Keywords: KB92457
Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3