Microsoft KB Archive/64754

Using C 6.00 and CVW 2.10 & 3.00 with Windows 2.10 Application

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

2.10 3.00 MS-DOS

= SUMMARY =

The LINK utilities and CodeView for Windows (CVW) versions 2.10 and 3.00 have a few compatibility problems with C 6.00-compiled applications. When linking with LINK4, CVW version 2.10 is fully functional. However, when running the same MARKED application under CVW 3.00, local or global variables are not recognized by the Watch window. The error “Watch Expression Not in Context” will result. To have access to all symbolic information in CVW 3.00, the application must be linked with LINK 5.10. However, under CVW 2.10, no source-level debugging is possible when the application is linked with LINK 5.10. This means that you need to build two different versions of your application: one for debugging in Windows 2.10 and the other for debugging in Windows 3.00.

= MORE INFORMATION =

The following steps are necessary to be able to debug a Windows 2.10 application compiled with C 6.00 in both the Windows 2.10 and 3.00 environments using the CodeView for Windows debugger versions 2.10 and 3.00. 1. Compile with the following options: /Od /Gh /Zi (The /Gh switch tells the C 6.00 compiler to generate code that is compatible with the C 5.10 libraries). 2. Link with the /CO option and the Windows SDK version 2.10 modified libraries. 3. Link as follows: a. When using CVW 2.10 (Windows 2.10 Debugger) to debug in the Windows 2.10 environment: - Link with LINK4 (version 5.01.17), included with 2.1 SDK. b. When using CVW 3.00 (Windows 3.00 Debugger) to debug in the Windows 3.00 environment: - Link with LINK (version 5.10) included with 6.00 Compiler. - Be sure that the following line appears in your .DEF file: EXETYPE WINDOWS - Mark the application as being 3.00-compatible by running the MARK utility, which is included in the Windows 3.00 SDK. 4. When compacting CodeView information, do the following: - Use CVPACK (version 3.01) included with C 6.00 Compiler.

Additional reference words: 3.00 KBCategory: KBSubcategory: TlsCvwVersion Copyright Microsoft Corporation 1993.