Hello again,
> Hopefully that helped, otherwise feel free to post more of the
> offending code, or a link if it's online.
Never mind about the link, I found it in the backtraffic. A couple of
notes, there are some places in Forger's tutorial where NULL is
used instead of 0 or other valid parameters in that code; particularly
in CreateFile and .styles. Not the best practice in C, and error-
prone in C++.
Here is a link describing proper use of CreateFile:
http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/winbase/filesio_7wmd.htm
That should all be one line.
I would /strongly/ suggest finding Petzold's "Programming
Windows" book if you are planning on doing Windows
programming. You might even be able to find an earlier edition for
cheap.
HTH
--
regards,
Nick
|