Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddFontResource (FoxFont)
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
AddFontResource (FoxFont)
Miscellaneous
Thread ID:
00277519
Message ID:
00277519
Views:
49
I am putting together a deployable SP3 and need to include FOXFONT. At the top of the EXE, If FOXFONT.FON is "local", FOXFONT is copied to the "fonts" directory and:
copy file foxfont.fon to c:..\..\fonts\foxfile.fon
DECLARE INTEGER AddFontResource IN WIN32API AS AddFontResource STRING
x=AddFontResource("foxfont.fon")
CLEAR DLLS
.. gets executed and FOXFONT.FON is deleted.
System has performed illegal operation .. is messaged. If my approach is okay, then maybe the CLEAR DLLs or deletion of FOXFONT is being hit before the AddFontResource is done. Please note the use of an xBase file copy to the fonts directory. Could it be that AddResource is getting hit before the xBase copy operation is completed. Should I "run copy"?
Any help appreciated
Terry
Imagination is more important than knowledge
Reply
Map
View

Click here to load this message in the networking platform