I was just wonderin' what function (or whatever) you use to control Windows (eg. to get the program to change the screen saver for).
Thanks
-Chris
I was just wonderin' what function (or whatever) you use to control Windows (eg. to get the program to change the screen saver for).
Thanks
-Chris
There is no single function you use to control Windows. There is, rather, a large API consisting of hundreds of functions, (although there are many that are only used in unusual circumstances).
A screen saver is an application, not a window. There is a special set of API routines dealing with screensavers.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Programming Windows
Fifth edition
Charles Petzold
This is for Win 32 API...
i bought it 2 months ago but just 3 days ago i start reading it.
and i like it allready
behold the faithless one and his angel
There are some simple Windows tutorials linked in the FAQ, (if the links are broken, mail me), or a well worded search with google will find hundreds.
There are also a few good books. "Programming Windows" by Petzold, (get the 5th edition), is probably the most recomended book. Another good author, (espeacially if you are not using Visual C), is Herbert Schildt, browse Amazon for his name and look for the "... from the Ground Up" series.
If you get stuck with the API, ask questions on the Windows board.
I would recomend you learn the API before you try to learn a class library like MFC - other would disagree.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
I have searched the book shops and the only *good* book that I have found is the one that i bought and have been learning from. So does anybody have a link to good tutorial on the subject of API?
you must have typed that one before I typed the above message...
Man I really wish there was a function that controlled windows
You can use the CreateProcess to run a screen saver. I don't have the knowledge of how to permanently change a screen saver from a windows program though. But if all you want to do is run a screen saver you'll be happy to know that you don't need to use windows to do that.
If you already have a book, make sure it is a Win32 book. There are earlier versions of the API, Win16 for example, that are now so out of date, I would not recomend bothering with.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
I agree with you totally adrian.MFC is very sparse in places and you OFTEN have to fall back on the api to do what you want and this is not easy if you started windows programming making dialog apps with mfc a la learn visual c++ in 21 days etc.I would recomend you learn the API before you try to learn a class library like MFC - other would disagree
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi