INITCB Correction Passing Basic COMMON Block to C (31788)






This article was previously published under Q31788

SUMMARY

CDECL is missing from the DECLARE statement in the Basic source code example. The code segment should be changed to read as follows:
  '     Basic SOURCE CODE
  '
            COMMON /Cblock/ n%, x#, y#
            DECLARE SUB INITCB CDECL (n%)
  .
  .
  .
				
The correction above applies to Page 317 of the following manuals:

  1. "Microsoft QuickBasic 4.00: Learning and Using"
  2. "Microsoft Basic Compiler Version 6.00 for MS-DOS and OS/2: Learning and Using Microsoft QuickBasic"

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB31788