
Originally Posted by
ctpsolo
Nicely done guys

. I guess this is just a snippet but otherwise you should write the pass to a file, hard to copy the pass from the console
Oh and just a question iopop9 why do you have cstdlib and string included?
They are not needed for that app, just makes the exe larger

OFF TOPIC: I'm a noob, I read this, and I figured i'd throw random information in here. I JUST learned this today. xD
Ever see a source code including this line?
[php]#define WIN32_LEAN_AND_MEAN[/php]
I had seen that quite a few times before, and I always wondered what it was. It just looks like such an obscure line of code. But here it is.
It is used to reduce the size of files that use the windows.h header. It excludes some of the less used/more advanced features of the header file. It also speeds up compile time (in large files that make multiple uses of the windows header.) as well as run time, but again, only in larger files. Because compiling 50 lines of code doesn't take too long anyway. =/
While i'm at it, i'll add MSDN's piece on reducing build time with smaller header files.

Originally Posted by
MSDN
Faster Builds with Smaller Header Files
You can reduce the size of the Windows header files by excluding some of the less common API declarations as follows:
* Define WIN32_LEAN_AND_MEAN to exclude APIs such as Cryptography, DDE, RPC, Shell, and Windows Sockets.
* Define one or more of the NOapi symbols to exclude the API. For example, NOCOMM excludes the serial communication API. For a list of support NOapi symbols, see Windows.h.