Microsoft KB Archive/43120

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:23, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q43120 to Microsoft KB Archive/43120 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

NAME Statement in .DEF File Must Start with a Letter

PSS ID Number: Q43120 Article last modified on 11-05-1993

2.03 2.10 3.00 MS-DOS

The information in this article applies to:
- Microsoft Windows Software Development Kit for Windows version 3.0

SUMMARY

In the module definition file for a Microsoft Windows application, the application name that is defined by the NAME statement must begin with an alphabetic character. If the name begins with any other type of character, including a numeric character, the LINK4 linker will report a syntax error in that line of the .DEF file.

MORE INFORMATION

The following .DEF file does not generate the error: NAME PROG1 DESCRIPTION ‘Example of good Name’ STUB ‘WINSTUB.EXE’ CODE MOVEABLE DISCARDABLE DATA MOVEABLE MULTIPLE HEAPSIZE 8192 STACKSIZE 8192 EXPORTS SimpleWinProc @1 The following .DEF file generates a syntax error on line 1: NAME 1PROG DESCRIPTION ‘Example of bad Name’ STUB ‘WINSTUB.EXE’ CODE MOVEABLE DISCARDABLE DATA MOVEABLE MULTIPLE HEAPSIZE 8192 STACKSIZE 8192 EXPORTS SimpleWinProc @1 Therefore, the workaround is to be sure to use an alphabetic character as the first character in the program name.

Additional reference words: 2.x 3.00 KBCategory: KBSubcategory: KrComplrSwitch Copyright Microsoft Corporation 1993.