Bluerune, always look at the official documentation as Laurent suggested. The problem with other varients is that they can quickly go out of date and lead you down the wrong path.
For instance, "PollEvent", like many other functions, had its case changed, so its now called "pollEvent"