DOC: PRINTER_DEFAULTS Contains an Incorrectly Typed Member
Article ID: 183852
Article Last Modified on 5/12/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q183852
SUMMARY
The API Text Viewer shows the pDevMode member of the PRINTER_DEFAULTS user-
defined type as DEVMODE user-defined type. If you pass this member to
another Windows API to control a printer, the API works correctly only
under Windows 95, Windows 98, and Windows Me, but not under Windows NT or Windows 2000. The pDevMode member should be declared as a long.
REFERENCES
To learn more about the API Text Viewer, on the Visual Basic 5.0 Help menu,
click Books Online. In the Find text box, enter the search criterion "api"
(without the quotation marks). The first item under the Visual Basic Books
Online node is the topic "Accessing the Microsoft Windows API."
Keywords: kbbug kbprint kbapi kbdocfix KB183852