INFO: Example of calling EnumFontFamilies from a DLL (98577)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q98577 SUMMARY
This article demonstrates how to obtain a list of available fonts for a
device by calling EnumFontFamilies or EnumFonts from a DLL.
Visual Basic already provides a Fonts property for obtaining a list of
available font names for a device. Microsoft recommends that you use the
Fonts property instead of the function provided in this article to obtain
a list of available fonts. Use the technique shown in this article only if
you have encountered a bug or limitation when using the Fonts property.
To create the example shown below, you need a C compiler capable of
creating Windows dynamic link libraries (DLLs), and you need to have the
Visual Basic Control Development Kit (CDK) version 2.0 or 3.0. The CDK
is provided with the Professional Edition of Visual Basic version 2.0
and 3.0 for Windows.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbinfo KB98577 kbAudDeveloper |
---|
|