Error in Turbo Pascal Example (32399)






This article was previously published under Q32399

SUMMARY

There 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 INFORMATION

The 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}
				

Modification Type: Major Last Reviewed: 7/30/2001
Keywords: KB32399