
Here's the source code for WinQOTD. It's very simple and uses only one (count 'em, one!) Windows API function, so it's not a good place to learn Windows programming. However, it might be interesting to look at for someone, so I put it up here for you all to enjoy :)
Download
(88 k)
I used Microsoft Visual C/C++ Version 1.52 to create this, although I imagine you could easily port it to anything else. The only resource it has is the icon. The only Windows API call is MessageBox(). All the stuff to actually get a quote is standard ANSI C. I hope. Oh, MSVC has some weird names for its include files, so you might have to change string.h to strings.h for some compilers (I know you have to for DJGPP). You'll probably also want to download the actual program archive for instructions on writing your own quotes and to get the sample quotes list.
If you have any questions about the source, feel free to contact me.
|