Path: utzoo!attcan!uunet!munnari.oz.au!brolga!bunyip.cc.uq.oz.au!qut.edu.au!drift From: drift@qut.edu.au (Glenn Wallace) Newsgroups: comp.windows.ms.programmer Subject: Font Resource saga .... Message-ID: <1991Apr9.100804.26613@qut.edu.au> Date: 9 Apr 91 15:08:04 GMT Organization: Queensland University of Technology Lines: 44 A while back there was talk about font resources. To summarise, there were two problems: 1) Create an EXE (.FON file) with no code it it, just font resources as recommended by MS. 2) using AddFontResource to get at 'em. well.. 1) I tried this, using FONTRES.ARC from Online (for Windows 2.0) which has a "null" asm file to linkto produce an exe so that rc can hook in the fonts. I had the same link5.1 problem ..... any ideas anyone? What's the answer? 2) I thought ... stuff it, I'll put my fonts in my DLL, as they are reasonably private to what my DLL is doing. So I do a AddFontResource in my LibMain to make them available after load time as follows; nf = AddFontResource(MAKEINTRESOURCE(hInstance)); // something like that.. and I still get a BIG FAT 0 from AddFontResource. The fonts are definitely in the DLL because WRT can see them (but not edit them :-( ). Anyone got any clues with AddFontResource???? Wasn't anything on this on OnLine either... Help! Summary of mailed replies will be posted. PS Thanks for the replies to the NetBios problem. +-------------------+-----------------------------------------+ | Glenn Wallace | Net: drift@qut.edu.au | | Drift Project | Fone: +61 7 837-7126 Fax: +61 7 221-0173| | Telecom Australia | Snail: 11th Flr 144 Edward St., | +-------------------+ Brisbane, Q4000 Australia | | | | Disclaimer - The opinions expressed must be my own, because | | Telecom is a statuatory authority and as such, | | is not capable of having opinions. | +-------------------------------------------------------------+