Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!pyrltd!pyra.co.uk!pjr From: pjr@pyra.co.uk (Peter Ruczynski) Newsgroups: comp.windows.ms.programmer Subject: Trouble creating fonts. Message-ID: <670677029.AA9049@flaccid> Date: 3 Apr 91 11:10:29 GMT Sender: news@pyra.co.uk (News system) Reply-To: pjr@pyra.co.uk (Peter Ruczynski) Organization: Pyramid Technology Ltd, Farnborough, ENGLAND Lines: 40 #include I'm trying to set up a font which I have desingned using the font editor so I have a .fnt file, I also have C6.0 SDK3.0 and masm5.10. First I thought I'd try to create a .fon system resource library... No joy! I tried various permutations of the example given in the MS Guide to programming (18.12) but my linker (not link4 by the way, but the one you get with C6.0) keeps telling me that I have no segments defined and bombs out, putting a NOP instruction in the asm code let it compile but it's no longer an allowable format as it has segs. I have three theories for the above: 1. is that there is a switch to link that I don't know about 2. there is a piece of special asm code somewhere which I don't know about (something like the code you get for creating dlls) or 3. I need link4! So, next I thought I'd try and rc it into my .exe pick it up using AddFontResource ala the tips.txt file which comes with the SDK... No joy yet again, AddFontResource returns null every time. I have absolutely no theories on this one... it just don't work! Am I missing something fundamental here or have Microsoft managed to hide a vital piece of info so well that I just can't find it? If this has been covered before then could someone mail me a resume of the mail thread. If not please email me and I'll post a resume if there is something missing in the SDK/documentation. Thanks Pete. -- -w--------- Pyramid Technology U.K. Peter Ruczynski ---www------- Pyramid House #include -----wwwww----- Farnborough pjr@pyra.co.uk -------wwwwwww--- Hants GU14 7PL England. Wot no funny comment :-)