Background
Total Visual SourceBook is the most extensive professional source code library for Microsoft Access, Office, VBA, and Visual Basic 6.0.
Problem
CFontDialog generates compile error: User-defined type not defined
Solution
Our Total Visual SourceBook program includes a class CFontDialog to display a Windows dialog for let your users to select an installed font.
When exporting the CFontDialog class it indicates it has no dependencies.
After inserting CFontDialog in your project, you may receive a compile error "User-defined type not defined".
Cause
This is caused by CFontDialog having a dependency on StdFont that's part of OLE Automation (stdole2.tlb). It's a Microsoft file that should already be installed.
What to Check
The dependency can be found in stdole2.tlb, which is found in C:\Windows\SysWOW64. Check the box next to OLE Automation:
Comments
0 comments
Please sign in to leave a comment.