Article View: comp.sys.amiga.tech
Article #9062Re: Font help needed
From: Randell Jesup
Date: Thu, 09 Jun 1988 18:01
Date: Thu, 09 Jun 1988 18:01
26 lines
1660 bytes
1660 bytes
In article <62300003@hobbiton> tran@hobbiton.prime.com writes:
>VAR
> Gfx, Intu, Dfon : LibraryPtr;
...
> Dfon := OpenLibrary(ADR("diskfont.library"),0);
...
> ft := OpenDiskFont(ta);
...
>Now, the code drops dead at the OpenDiskFont call. What am I doing wrong?
>As far as I can see, it should work. I have added all your responses so far
>(diamond.font in lowercase, adding the diskfont.library, etc) but still this
>turkey refuses to fly.
I don't know how your system handles libraries, but for all languages
I've seen, the library pointer must go in a global variable of a specified
name so the interface routine (for OpenDiskFont) can find it. How else is
the interface code for OpenDiskFont supposed to know that there is a valid
DiskFont library pointer around? You don't pass it to the code, so it must
be looking for a global somewhere. Read your compiler documentation for
interfacing with library routines.
Note: the same problem applies to the other libraries, unless the
system happens to have opened them already (like C startups open dos.library
for you).
Randell Jesup, Commodore Engineering {uunet|rutgers|ihnp4|allegra}!cbmvax!jesup
Technical Details
Message-ID:
<3982@cbmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!necntc!dandelion!ulowell!cbmvax!jesupReferences:
<62300001@hobbiton> <62300003@hobbiton>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!necntc!dandelion!ulowell!cbmvax!jesup From: jesup@cbmvax.UUCP (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: Font help needed Message-ID: <3982@cbmvax.UUCP> Date: 9 Jun 88 18:01:48 GMT References: <62300001@hobbiton> <62300003@hobbiton> Reply-To: jesup@cbmvax.UUCP (Randell Jesup) Organization: Commodore Technology, West Chester, PA Lines: 26