Error in Turbo Pascal ExampleLast reviewed: September 16, 1996Article ID: Q32399 |
SUMMARYThere is an error on Page C-2 of the "Microsoft Mouse Programmer's Reference Guide," Appendix C, "Making Calls from Borland Turbo Pascal Programs."
MORE INFORMATIONThe code on Page C-2 reads as follows:
if (m1 = 20) then {Special returns }
m2 := CpuReg.ES;
m1 := CpuReg.AX; {Return values back}
m2 := CpuReg.BX; { to parameters }
m3 := CpuReg.CX;
m4 := CpuReg.DX;
end;
end; {mouse}
The code should read as follows:
m1 := CpuReg.AX; {Return values back}
m2 := CpuReg.BX; { to parameters }
m3 := CpuReg.CX;
m4 := CpuReg.DX;
if (m1 = 20) then {Special returns }
m2 := CpuReg.ES;
end;
end; {mouse}
|
KBCategory: kbhw kbdocerr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |