Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!daver!dlb!netcom!wolf From: wolf@netcom.COM (Buckskin Tech.) Newsgroups: comp.windows.ms.programmer Subject: Re: Previous post on Font Resource saga .... Message-ID: <1991Apr10.233034.27564@netcom.COM> Date: 10 Apr 91 23:30:34 GMT References: <1991Apr10.084741.26706@qut.edu.au> Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} Lines: 27 drift@qut.edu.au (Glenn Wallace) writes: >Ahem. I can get AddFontResource to work if I pass it the name of my >library that has the fonts in. It returns 16. >If I used the advertised feature of passing a handle to the library in the >low word, high word=0 (using MAKEINTRESOURCE as shown in my previous post) >it returns 0. >Has anyone used AddFontResource _WITHOUT_ specifying the name of the lib? Maybe it's just me, but according to my Microsoft SDK TIPS.TXT file, it warns against using handles with AddFontResource. I quote: * ---------------------------------- * 1.10 Font as a resource in an EXE * ---------------------------------- * * Although not encouraged, fonts may be added to the resources * of an application. To access these fonts use the function * AddFontResource. Use the filename of the .EXE file as the * parameter to this function. This is in contrast to 2.x, * where you could do a FindResource call using RT_FONTDIR, * load the resource and then add the font resource using the * handle returned from LoadResource. - Phil