HDTenEightyP/NetNews huggingface dataset:
From: lam836@cucs18.cs.cuhk.hk (Lam Lai Yin Savio)
Subject: Can't load WINDEBUG.DLL?!
Organization: Faculty of Engineering, The Chinese U. of Hong Kong
Date: Mon, 31 Aug 1992 03:10:25 GMT

	I don't know if it has been asked before. Sorry if I am
repeating the same question again.

	After I switched from Win 3.0 to 3.1, everytime I load a
program in TDW, it says "Can't load WINDEBUG.DLL", any idea?

	Thanks in advance.

- Savio Lam.
e-mail: lam836@cucs18.cs.cuhk.hk
From: drv@cbnewsj.cb.att.com (dennis.r.vogel)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Petzold Book and Substitutes
Date: 2 Sep 92 17:06:49 GMT
Organization: AT&T

A while ago people were singing the praises of Petzold's
Windows programming book.  I believe the Windows 3.0
version (the second edition of the book) is no longer
available.  A new edition aimed at Windows 3.1 is to be
coming soon.  My questions are:

	1. Does anyone know when the new Petzold edition (3rd?)
	   is due?

	2. Out of the dozens of Windows programming guides
	   at my local bookstores, which would you consider
	   as good, or nearly so, as the Petzold book?

Dennis R. Vogel
AT&T Bell Laboratories
Middletown, NJ
Newsgroups: comp.os.ms-windows.programmer.misc
From: stevesi@microsoft.com (Steven Sinofsky)
Subject: Re: Mixing Windows API code & MFC
Date: 28 Aug 92 01:27:13 GMT
Organization: Microsoft Corporation
Distribution: na



Be sure that your callback is FAR PASCAL, even if you make it a 
static member of a C++ class.

The following replaces the use of the MFC C++ class CModalDialog
with direct Windows API calls.


BOOL FAR PASCAL AboutBox(HWND hDlg, UINT nMsg, WPARAM wParam, LPARAM lParam)
{
	switch (nMsg)
	{
		case WM_INITDIALOG:
			return TRUE;
		case WM_COMMAND:
			::EndDialog(hDlg, TRUE);
			return TRUE;
			break;
		default:
			return FALSE;
	}
}

void CMainWindow::OnAbout()
{
	FARPROC lpAbout = ::MakeProcInstance((FARPROC)AboutBox, 
			AfxGetInstanceHandle());
	::DialogBox(AfxGetResourceHandle(), "AboutBox", NULL, (DLGPROC)AboutBox);
	FreeProcInstance((FARPROC)AboutBox);	
}

In article <1992Aug26.044944.11302@csus.edu> vpcsc7@sfsuvax1.sfsu.edu (Dan Tauber) writes:
>I am trying to use an API window procedure in a MFC application
>to handle the About box.  I have the help/about message mapped to the
>main windows' OnAbout method.  Whenever this code executes, I get a
>GP fault when it calls the Windows API ::DialogBox function.
>
>{
>DLGPROC lpfnAbout = (DLGPROC) ::MakeProcInstance(
>				   (FARPROC) ::AboutBox, hInst);
>::DialogBox(hInst, "DT_ABOUT", m_hWnd, lpfnAbout);
>::FreeProcInstance((FARPROC)lpfnAbout);
>}
>
>hInst is a global handle that I initialize with the
>AfxGetInstanceHandle() function when the program starts.  m_hWnd
>is the CWnd member function that holds the handle to the window.
>I also export the AboutBox funtion in the def file.
>
>Can anyone help?
>
>Thanks
>
>Dan
>tauber@futon.sfsu.edu


-- 
Steven Sinofsky
stevesi@microsoft.com
Disclaimer: I don't speak for Microsoft, BillG does that.


-- 
Steven Sinofsky
stevesi@microsoft.com
Disclaimer: I don't speak for Microsoft, BillG does that.
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: sam@netcom.com (Samuelson S. Rehman)
Subject: Question about Listbox 64K barrier
Date: Wed, 26 Aug 92 03:40:55 GMT
Organization: Newspager Corp. of America
Summary: Is there a way around the barrier?
Reply-To: sam@nca.com
Distribution: usa


I'm a M2 UNIX programmer and programming in MS Windows is pretty new to me.

I'm writing a program that can allow a user to select a record from
a listbox. Now this list of record can easily exceed the 64K barrier.
So my questions are:

	1. How can I interrupt the user when he's trying to scroll down/up,
	so I can load the next/prev 64K segment from the file ?

	2. And even if that can be done, how do I maintain the scrollbar to
	show the position of the bar within the whole database, but not
	just within the 64K segment ??

	3. If that is totally impossible, can anyone tell me where can
	I find information (books maybe) about writing a widget ( or
	whatever it's called in MS Windows ) ?

Thanks!

_______________________________ End of Message _________________________________
						
						Yours Sincerely,
   |\        ||||  ||||||||| (tm)
   |||\      ||||  ||||				Samuelson S. Rehman, ssr(SE/ADM)
   |||||\    ||||       ||||			[ Director, NIS Data Center ]
   |||||||\  ||||  |||||||||			Systems Programmer,
  Newspager Infomation Systems			Voice:	    (415) 873-4422
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~			Fax:	    (415) 873-4424
						Email:	    sam@nca.com
							    rnd_dept@nca.com
							    sam@netcom.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: steve@monu6.cc.monash.edu.au (Steve Balogh (+61 3 565 4747))
Subject: Re: Giving up the CPU in a Windows App ?
Organization: Monash University, Melbourne, AUSTRALIA
Date: Mon, 31 Aug 1992 08:09:24 GMT

In article <1992Aug28.165118.16988@tandem.com> stu@Tandem.COM writes:
>I have a Windows application that I'm writing that needs to process a bunch
>of data before displaying any more results.  The time needed for the 
>processing is sufficiently long that it would be nice to run it in the
>background and give the illusion of multi-tasking.
>
>Whats the best way to release the processor and yet insure that the
>application gets sent another message by Windows in order to get some
>more processing done ?  Clearly I have to return from the Window proc
>in order to get Windows to run something else but what is the API call
>to best accomplish this ?

Yield(...)


Regards,
         Steve

----_--_-_-_--_-__-_------_-__---_-___-_----_-____-_-_--__-_--_--___-_-_-_--__-_
Steve Balogh  VK3YMY   (Maths G.14)   | steve@monu6.cc.monash.edu.au
Monash University, Clayton Campus     |      37 54'38.8"S  145 07'47.1"E ...ICBM
Wellington Road, Clayton.  	      |      +61 3 565 4747 Voice (Office)
Melbourne, AUSTRALIA. 3168	      |      +61 3 565 4746 Fax
Newsgroups: comp.os.ms-windows.programmer.misc
From: vpcsc7@sfsuvax1.sfsu.edu (Dan Tauber)
Subject: Mixing Windows API code & MFC
Organization: San Francisco State University
Distribution: na
Date: Wed, 26 Aug 1992 04:49:44 GMT

I am trying to use an API window procedure in a MFC application
to handle the About box.  I have the help/about message mapped to the
main windows' OnAbout method.  Whenever this code executes, I get a
GP fault when it calls the Windows API ::DialogBox function.

{
DLGPROC lpfnAbout = (DLGPROC) ::MakeProcInstance(
				   (FARPROC) ::AboutBox, hInst);
::DialogBox(hInst, "DT_ABOUT", m_hWnd, lpfnAbout);
::FreeProcInstance((FARPROC)lpfnAbout);
}

hInst is a global handle that I initialize with the
AfxGetInstanceHandle() function when the program starts.  m_hWnd
is the CWnd member function that holds the handle to the window.
I also export the AboutBox funtion in the def file.

Can anyone help?

Thanks

Dan
tauber@futon.sfsu.edu
From: ttoronyi@server.uwindsor.ca (Tibor Toronyi)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Advice on a WINDOWS compiler
Date: 27 Aug 1992 18:05:42 GMT
Organization: University of Windsor, Ontario, Canada

Hi there!

I'm just learning the ins and outs of programming in Windows 3.1 and could
use some advise on a compiler.  I have Borland C++ 2.0.  Does this compiler
support Win31?  What about Borland C++ 3.0?  Does Borland plan yet another
upgrade when NT appears?

Side note.  I've checked out the C++ 3.0 and noticed that the box says
something like "includes ANSI ... 2.01 compiler".  Does this mean that
3.0 is really a fluffed up 2.0 compiler?  Or is my memory slipping.

Please Email

Thanx in Advance.

Tibor Toronyi                     INTERNET: tibor@alpha.uwindsor.ca
University of Windsor                       ttoronyi@cs.uwindsor.ca
Windsor, Ontario
Canada
From: death@acca.nmsu.edu (Jeff Garzik)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Edit controls and OLE
Date: 31 Aug 92 00:23:40 GMT
Organization: New Mexico State University

Jeff Garzik (death@acca.nmsu.edu) wrote:
: I am making a program which creates an edit window (through OWL) and I
: want to be able to link objects into it.  How do I display the objects in
: the edit control?  Basically, I want to know how to:
: 
: Display the icon and/or bitmap related to the object in the edit control,
: and have the text flow around it.  Basically a cheap word processor.

I forgot to mention that I am programming this in TPW, but I can read
C/C++ advice as well... 

--
"Only sheep need a leader." - Nomeansno

death@acca.nmsu.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: mark@student.business.uwo.ca (Mark Bramwell CS Staff)
Subject: dos programs printing to windows spools?
Organization: University of Western Ontario
Date: Tue, 1 Sep 1992 17:43:26 GMT

Is it possible for a dos program running under windows to print to a windows
printer?

I would like to make use of some of the special windows drivers.

mark@student.business.uwo.ca (Mark Bramwell CS Staff)
Western Business School  --  London, Ontario
Newsgroups: comp.os.ms-windows.programmer.misc
From: yfwu@Uz.nthu.edu.tw (EE U780935)
Subject: Re: Giving up the CPU in a Windows App ?
Organization: National Tsing Hua University (HsinChu)
Date: Fri, 4 Sep 1992 00:52:13 GMT

WaitMessage will work!

Newsgroups: comp.os.ms-windows.programmer.misc
From: v37262d@kaira.hut.fi (Mancko H|glund)
Subject: Re: Environ or getenv() from a DLL
Keywords: Windows, DLL, AAAAArgh!
Reply-To: ebbe@shsibm.shh.fi
Organization: Helsinki University of Technology, Finland
Date: Mon, 31 Aug 1992 05:34:49 GMT

In article <1992Aug27.222425.9328@serval.net.wsu.edu> 
mwoodwar@yoda.eecs.wsu.edu (woodward matthew d - CS350) writes:

>I'm sure that this is in a FAQ somewhere, but is it at all possible
>to get environ or call getenv() from a windows DLL?  If so, how would
>one go about it?

Use GetDOSEnvironment(). It returns a pointer to a string array corresponding
to all of your current environment variables. The array is a memory block of
standard 'C' strings; the end of the block is signalled by an extra 0x00 char
after the end of the last string.

I've got the code that looks up a specified variable; holler if you'd like
a copy.

	...ebbe@shsibm.shh.fi	

+----------------------------------------------------------------------------+
v37262d@kaira.hut.fi:	Mancko H|glund 	(mancko@shsibm.shh.fi) or  
			Ebbe Jonsson	(ebbe@shsibm.shh.fi)
+----------------------------------------------------------------------------+
Newsgroups: comp.os.ms-windows.programmer.misc
From: torstein@kjemi.unit.no (Torstein Hansen . Elektrokjemi)
Subject: Re: Can't load WINDEBUG.DLL?!
Organization: Lab. of Chem.Eng, Norwegian Inst. of Tech.
Date: Tue, 1 Sep 92 06:58:19 GMT

In article <1992Aug31.031025.10090@cucs5.cs.cuhk.hk> lam836@cucs18.cs.cuhk.hk (Lam Lai Yin Savio) writes:

>	After I switched from Win 3.0 to 3.1, everytime I load a
>program in TDW, it says "Can't load WINDEBUG.DLL", any idea?
>

An updated WINDEBUG.DLL may be found in tpwin31.zip at
  puffin.doc.ic.ac.uk (146.169.3.7) in the directory
    ibmpc/windows3/programr/tp
or at
  ftp.cica.indiana.edu (129.79.20.84) in the directory
     ~ftp/pub/pc/win3/programr/tp

Torstein Hansen
torstein@kjemi.unit.no

Newsgroups: comp.os.ms-windows.programmer.misc
From: stare@lonexb.rl.af.mil (Edward M. Starczewski)
Subject: Re: Petzold Book and Substitutes
Organization: RL
Date: Fri, 4 Sep 92 01:31:50 GMT


-- 
Edward M. Starczewski     Fax: 315-330-2139
Rome Laboratory           Com: 315-330-4431
E-mail: stare@lonex.rl.af.mil
Newsgroups: comp.os.ms-windows.programmer.misc
From: bernstei@shrike.und.ac.za (Simon Bernstein)
Subject: CodeBase 4.5 with VB
Organization: Univ. Natal, Durban, S. Africa
X-Newsreader: Tin 1.1 PL5
Date: Wed, 2 Sep 1992 09:44:05 GMT

Hi.  I recall a few weeks ago a discussion about VXBase and CodeBase with VisualBasic.  At the time, I needed VXBase, but I never could get it.  My university  has since acquired CodeBase 4.5 (Unfortunately not CodeBasic), and if anyone whouses VB + CodeBasic could please contact me (I need help getting the two to worktogether) I would be extremely grateful.  Please respond by e-mail to

bernstei@shrike.und.ac.za

Thanks very much

  Simon Bernstein

University of Natal, Durban
From: jere@uta.fi (Jere K{pyaho)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Screen Saver Library and BC++ 3.1
Summary: What happened to the screen saver files?
Keywords: Windows Screen savers Borland C++ 3.1
Date: 28 Aug 92 07:14:42 GMT
Distribution: world
Organization: University of Tampere, Finland

Could someone from Borland clarify for good what the real issue
about the Windows 3.1 screen saver API is about?

Case in point: reading the documentation for the Screen Saver
Library in the on-line help file included with Borland C++ 3.1,
one sees references to files called SCRNSAVE.H and SCRNSAVE.LIB.
One checks out the file list for BC++ 3.1 only to find out that
no such files are included.

First someone said the files were forgotten from the distribution.
That information came from Borland, if I recall correctly, with
claim that the missing files would be put on CompuServe or somesuch.
Not long after that a person relayed information from Borland U.K.'s
tech support; the files were not included in the distribution
because of technical reasons (calls to internal MSC run-time
helper functions etc.)

Now, screen savers are not the most important programs in the
world, I grant it, but they're important enough to build an API
(at least a sort of) for them. Can us Borland users have the
opportunity to write a few savers now and then, complete with
password options and all, sometime in the future?

Of course there is example code included with BC++ 3.1 for
writing screen savers - with the ObjectWindows library.
But what if OWL is too big for such a little thing? What if
you don't want to use the (somewhat bulky) DLL and the
class library? I would assume that Borland could have gotten
the source code for the Screen Saver Library in their
cross-license agreement (or whatever) with Microsoft, just
compiled the stuff with BC and put it into a library. Why not?

I hope we can put this topic to rest - with two silly files,
I could have written a six-pack of savers in one afternoon,
instead of harassing our local tech support and using my
Internet account as a soap box.

How's that for my ECU's worth,
Jere
-- 
/* Jere K{pyaho -- jere@kielo.uta.fi -- University of Tampere, Finland */
/* Department of Translation Studies -- Department of Computer Science */
From: whedon@netcom.com (Bill Whedon)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Reading in PAN FIles--Upside down--Why? What purpose?
Keywords: DIB
Date: 31 Aug 92 20:18:45 GMT
Distribution: comp
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

You need to look at SetMapMode, SetWindowOrg, SetWindowExt, SetViewportOrg,
and SetViewportExt commands in the SDK or online docs.  Normally, the 0,0
point on your display is the upper left corner.  If you feed it points
originating at the the lower left, they will be, as you say, upside-down
and backwards.

Try:
SetMapMode(hDC,MM_ISOTROPIC);
SetWindowExt(hDC,Xext,Yext); /* width and height of your bitmap */
SetViewportExt(hDC,cxClient,-cyClient); /* width and height of client area */
SetViewportOrg(hDC,0,cyClient);

Note that the setting in SetViewport of -cyClient puts you in the lower
half of the coordinate system, and the cxClient keeps you to right of
center, which is where I think you want to be.

SERMON:  "Programming Windows", Charles Petzold, Microsoft Press,
         ISBN 1-55615-264-7 hath many examples, and Other Wonders.
(here endeth the sermon)
Cheers, and, have fun!
Newsgroups: comp.os.ms-windows.programmer.misc
From: lansd@dgp.toronto.edu (Robert Lansdale)
Subject: How to catch floating point exceptions (under Watcom C/386)?
Organization: CSRI, University of Toronto
Distribution: na
Date: 31 Aug 92 22:12:11 GMT


	After a bit of debugging I came to realization today that the
normal UNIX-like signal() handling mechanism does not function under
Windows 3.1. In particular, it does not function when using Watcom C/386
with their Windows 32-bit supervisor. A quick search through my Windows
books turned up nothing and none of the FAQs mentioned exception handling.
So, how may I intercept a signal in Windows, in particular a floating
point exception?

--> Rob Lansdale

-- 
Robert Lansdale - (416) 978-6619       Dynamic Graphics Project	
Internet: lansd@dgp.toronto.edu        Computer Systems Research Institute
UUCP:   ..!uunet!dgp.toronto.edu!lansd University of Toronto
Bitnet:	  lansd@dgp.utoronto           Toronto, Ontario M5S 1A4, CANADA
From: gordy@endor.uucp (Robert Gordy)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: TDW and Video Drivers
Date: 28 Aug 92 15:39:40 GMT
Organization: Aiken Computation Lab, Harvard University

Has anyone had problems running Borland C++ 3.1 Turbo Debugger
for Windows using certain video drivers?  I spent a couple
of hours fighting with TDW last night before I realized it
was the video driver.  If I use any of the drivers that
came with my Ultra Graphics Board or the 8514 driver that
came with Windows 3.1, TDW will not only bomb out (ie. lock
up the system) but when I try to cancel the task with Cntl-Alt-Del,
it gives me a GPF and brings me back to the DOS prompt.

When I run TDW using the 800x600 16 color VGA driver (comes with
Windows 3.1) it runs fine.

Other details:
	486 50 Mhz (DX2) processor
	ATI Ultra Graphics Board w/1 Mg
	Crystal Scan 15" monitor (1248 x 1240)
	Windows 3.1/DOS 5.0
	Borland C++ w/Application Frameworks 3.1

Thanks in advance for the help.

Rob Gordy
From: gilligan@bldrdoc.gov (Jonathan Gilligan 303-497-3861)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Dynamical printer fonts: HOW?
Date: 27 Aug 92 00:16:08 GMT
Organization: National Institute of Standards and Technology


I am writing an application that creates a bitmapped printer soft font
dynamically.  How do I tell Windows to download the font to the
printer and use it for printing? Also, if I want to support printers
that don't allow soft fonts, is there a way to tell Windows about the
bitmapped printer fonts, or do I need to generate the whole page as a
bitmap and print it?

---Jon
-- 

Disclaimer --- The government probably disagrees with my opinions.
Newsgroups: comp.os.ms-windows.programmer.misc
From: jcmorris@mwunix.mitre.org (Joe Morris)
Subject: Re: Needs: True Type font format
Keywords: True Type Font
Organization: The MITRE Corporation
Date: Wed, 26 Aug 1992 13:37:06 GMT

mik@id.dth.dk (Michael Kishinevsky (921231#JST)) writes:

>Could anybody give an advice where to get
>an information on formats of True Type font 
>for MS Windows 3.1. The friend of mine from
>St.Petersburg (Russia) needs to know the content
>of font's bytes.

The information on the layout of TrueType font files is available
in files placed by Microsoft on the uunet system where they can
be retrieved via anonymous FTP.  If memory serves, the procedure is:

  Open an FTP connection to ftp.uu.net and logon as "anonymous"
  cd to /vendor/microsoft/TrueType-Info
  change mode to binary (or "tenex")
  Download files ttspec*.zip  (for * = {1,2,3})

The files are Word for Windows documents which together generate a large
but apparently complete description of the font files and the TT commands.
The .ZIP files will explode to individual chapters or parts of a chapter.

There are a few minor typos I've found in the text, and Microsoft has
announced that there will be some changes to the design (for example in
the interpretation of the license control bitswitches) but for most
purposes it should tell you what you're after.

Joe Morris / MITRE
From: simon@minster.york.ac.uk
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VB and OLE
Date: 28 Aug 92 10:32:37 GMT
Organization: Department of Computer Science, University of York, England
X-Newsreader: Tin 1.1 PL5

We've just bought a copy of the VB professional toolkit (which
I heartily recommend).  One of the custom tools which it 
provides is an OLE client, allowing a VB application to embed
or link to OLE objects.

What we'd really like to do is to have a Visual Basic application
act as an OLE *server* - we want to generate data in VB and 
embed it into Word using OLE.

I've got a copy of the MSJ article on writing OLE servers, but it'd
be a lot of work to write a new control to implement this.  I was
wondering:  has anyone out there written or come across an OLE server
control?

Thanks in advance,


-- Si

--------------------------------------------------------------------
Simon A. Dobson

Dept. of computer science, University of York, Heslington, York, UK.
simon@minster.york.ac.uk                            (+44 904) 433378
--------------------------------------------------------------------
            "There must be more to being a talking dog than this..."
Newsgroups: comp.os.ms-windows.programmer.misc
From: castanos@wam.umd.edu (Jose Alberto Castanos)
Subject: Re: Bold fonts only in Dialog boxes??
Organization: University of Maryland, College Park
Date: Tue, 1 Sep 1992 00:14:06 GMT

In article <1992Aug27.090853.1@cortex> mboucher@cortex.prospect.com (Mike Boucher) writes:
>Hey there,
>
>I'm using MS C 7.0 and SDK to create dialog box resources.  I include the line
>
>FONT 9, "Courier"
>
>So that I have a fixed width font.  What I get is Courier BOLD in the dialog.
>I can only get "plain" courier in my Word Processor.  If I change the font to
>something like Arial, I still get BOLD!!
>
>What can I do to get a "plain", fixed-width, MS supplied font?
>


The following example from the SDK does the trick, but you have to change the
font of each control in the dialog box.  Is there a way to get a normal weight
font using the FONT statement?


From the SDK documentation:
--------------------------
 
This example changes the font used by controls in a dialog box to a font
that is not bold. 

HFONT hfontDlg;
LOGFONT lFont;

case WM_INITDIALOG:

    /* Get dialog box font and create version that is not bold. */

    hfontDlg = (HFONT) NULL;
    if ((hfontDlg = (HFONT) SendMessage(hdlg, WM_GETFONT, 0, 0L))) {
        if (GetObject(hfontDlg, sizeof(LOGFONT), (LPSTR) &lFont)) {
            lFont.lfWeight = FW_NORMAL;
            if (hfontDlg = CreateFontIndirect((LPLOGFONT) &lFont)) {
                SendDlgItemMessage(hdlg, ID_CTRL1, WM_SETFONT,

                    (WPARAM) hfontDlg, 0);
                SendDlgItemMessage(hdlg, ID_CTRL2, WM_SETFONT,
                    (WPARAM) hfontDlg, 0);
                .
                . /* Set font for remaining controls. */
                .
            }
        }
    }
    return TRUE;


-------------------------------------------------------------------------------
Jose A. Castanos       | Computer Science Dept. |"If a person never contradicts
(castanos@wam.umd.edu) | University of Maryland | himself, it must be that he 
                       | College Park, MD       | says nothing." -M. de Unamuno
-------------------------------------------------------------------------------
From: kwanghan@iti.gov.sg (Tan Kwang Han)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Loading Fonts created with Font Editor
Keywords: Loading FONTS
Date: 27 Aug 92 12:05:08 GMT
Organization: Information Technology Institute, National Computer Board, S'pore

I created some new characters using the font editor in WINSDK
After decalring them  in my .RC file  as 999 FONT MyFont.FNT
I proceed to load the font resource with
handle = LoadResource(hInstance, FindResource(hInstance,"#999",RT_FONT));
hFont = (LPHANDLE) LockResource(handle);

SelectObject(hDC,hFont);
TextOut(hDC,x,y,szMsg,sizeof(szMsg));

The output defaulted to the system fonts.

I substituted the LoadResource().. LockResource() 
to AddFontResource("MyFont.Fnt") to no relief either.

Can someone help or better still any sample code :)
---
TAN Kwang Han    	               /* All comments are mine alone */
Information Technology Institute,      National Computer Board, Singapore
Internet : kwanghan@iti.gov.sg       | Voice : (65) 7720 548
Bitnet   : kwanghan@itivax.bitnet    | Fax   : (65) 7795 966
Newsgroups: comp.os.ms-windows.programmer.misc