My profession was DOS programming for about 15
years, and I have Petzold's book "Programming
Windows 95", so agree with you completely.
Petzold's website had downloads of the examples
from some of his books, which I've been looking
at, but a lot of stuff now seems to be in C++ or
C#, (which I really never got a handle with
<groan>), while most of my programming was in C,
Pascal, Cobol, Fortran, et al. <grin>
I admit that this is probably not strictly
on-topic for this list, but at least I can say
that the only compiler tools I've used since I
attended Waterloo have been the Waterloo-based
compilers (starting with WATIAC, WATMAP, WATFOR
and WATFIV). Yeah, that was a looong time ago! :)
David O
Post by Hans-Bernhard BrökerPost by David OgilvieIt's the Windows API one that I was trying to
use, and was looking at
the M$ documentation. I'm sure there must be a
way to output text of
different sizes, but they sure don't make it
obvious how to do it! <grin>
The API documentation is really meant more for
reference, not as learning material for newbies.
Windows programming is complex enough that you
really need some coherent explanation of it all.
Generations of budding Windows programmers have
all learned from various updated versions of the
same book: "Programming Windows" by Charles Petzold.
As to the problem at hand: TextOut() has five
arguments. Four of them are pretty
self-explanatory. The clue must thus be in the
remaining one: the HDC, or "handle to a device
context". You'll want to find out where to get
that from, and what other functions use this kind
of argument, particular those that deal with fonts.