Appropriate license for this class not found error at runtime

Code that runs fine in development may generate Appropriate license for this class not found (OLE error code 0x80040112) at run-time.

AError() function returns extended information for errors 1104 and 1105 in Visual FoxPro 9.0 SP2

topic: 

Visual FoxPro 9.0 Service Pack 2 improves the capability of the AError() function for errors 1104 - Error reading file, and 1105 - Error writing file. For these errors only, the array produced by AError() contains additional error information consisting of the underlying operating system error number and error text. The error number and error text are stored in the AError() array, elements 6 and 7 respectively.

Not enough memory for file map (Error 1150)

topic: 

The explanation for the error isn't too helpful and even confusing as the error often shows up on computers with plenty of memory.

Cannot access the selected table (Error 1152)

topic: 

The error is related to the RowSource or ControlSource of a ListBox/ComboBox.

Retrieving Windows system error message

The WIN API FormatMessage function (among other things) can retrieve message definition from an already-loaded module or the system's message table. The error code usually is provided by the GetLastError

WIN API function.