Thanks! I didn't know I had to include windows.h. I'm realitively new to C++ programming, so I don't know all the different headers that are needed. Thank you Vlatko.