Sorry my bad. The code that was being used is the same as the one in the tutorial in this file
http://sfml-dev.org/tutorials/1.6/sources/graphics-window.cpp. I have included a copy here below stripped of comments.
#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
while (App.IsOpened()) {
sf::Event Event;
while (App.GetEvent(Event)) {
if (Event.Type == sf::Event::Closed)
App.Close();
if (Event.Type == sf::Event::KeyPressed) {
if (Event.Key.Code == sf::Key::Escape)
App.Close();
if (Event.Key.Code == sf::Key::F1) {
sf::Image Screen = App.Capture();
Screen.SaveToFile("screenshot.jpg");
}
}
}
App.Clear(sf::Color(200, 0, 0));
App.Display();
}
return EXIT_SUCCESS;
}
Additional Information.
I've linked the following files: sfml-system-s.lib sfml-graphics-s.lib sfml-window-s.lib
There are no additional .dll in the directory that the file is being executed in as I don't believe I need as I am using the static libraries.
Newly discovered. Oddly enough when I link to sfml the static-debug versions of the libraries files, the code runs properly. However, compiling results in many warnings similar to the following.
1>sfml-system-s-d.lib(Platform.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with 'C:\SFML-1.6\lib\sfml-system-s-d.lib' or at 'c:\Documents and Settings\user\My Documents\Visual Studio 2005\Projects\SFML_GraphicsWindow\debug\vc80.pdb'; linking object as if no debug info