Message Board


Message Board > Fenix / Bennu / Gemix / DIV > ttf.dll wont load

August 24, 2006, 12:31
yonni
None
420 posts
Whenever I try to:

IMPORT "ttf.dll";

into my game (yes ttf.dll is in the same directory as the dcb) it just brings an error message saying "could not load library. (ttf.dll)". Have I missed something?
____________
#
August 25, 2006, 01:53
Rhovanion
Exterminated
666 posts
use INCLUDE instead of IMPORT. I don't know exactly the differnce though.
____________
#
August 25, 2006, 02:19
Rincewind
programmer
1546 posts

That's not right Rhovanion, include is for including code files, not compiled libraries.

Yonni, the "import" needs to be under Global afaik. I always do this:
Code:
Program blaat;

Global
import "ttf.dll";

Global
Variable1;
Variable2;

Begin

..

End


Aside from that, *make sure* you also have freetype.dll in the same directory as ttf.dll, ttf.dll uses that. In fenix you don't have to include freetype.dll though.
____________
Personal website: http://www.loijson.com
#
August 25, 2006, 12:42
yonni
None
420 posts
ah, thanks alot rince
____________
#
August 27, 2006, 20:52
Rhovanion
Exterminated
666 posts
Quoting Rincewind:
That's not right Rhovanion, include is for including code files, not compiled libraries.
yeah thanks for the info
____________
#

Message Board > Fenix / Bennu / Gemix / DIV > ttf.dll wont load

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!