June 17, 2024, 08:56:53 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Question about COPYFILE function

Started by King64, December 26, 2009, 10:33:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

King64

Using COPYFILE function to copy my own font from a folder to fonts folder, i noticed that when try to use my font i can't visualize it correctly. So i have to put an idle loop for synchronization after COPYFILE function. I suppose that windows starts a thread to make the job. Is there a way, different from idle loop, to check when my own font is effectively available ? :)

ZeroDog

Instead of using the COPYFILE function, why not try using the AddFontResource API function in gdi32.dll .

Some details on using it here

King64

Thank you ZeroDog, now it works fine !  :)