Hi guys.
Today I want to start learn using the SFML. I've downloaded the libs, include files and so on.
Thereafter I linked all libs to a Project and want create my first Window with the SFML.
I written following code in my vs08:
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <iostream>
//////////////////////////////////////////////////////
// Hauptprogramm start
//////////////////////////////////////////////////////
int main()
{
// Fenster erzeugen
sf::Window App(sf::VideoMode(800, 600, 32), "Title");
//////////////////////////////////////////////////
// In die Hauptschleife springen
for (int i = 0; i < 1000; i++)
{
App.Display();
}
// Hauptschleife Ende
//////////////////////////////////////////////////
// Programm Ende
return EXIT_SUCCESS;
}
No compile or linker errors. So the program started correctly. But at the End of the program I got an Error Message:
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Error!
Program: ...entwicklung\Alle Projekte\SFML Übungen\Debug\SFML Übungen.exe
Module: ...entwicklung\Alle Projekte\SFML Übungen\Debug\SFML Übungen.exe
File:
Run-Time Check Failure #2 - Stack around the variable 'App' was corrupted.
(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------
Somethin is wrong with the variable "App" which create my Window. But I don't know what.
Except this problem I have a problem with my title. The running programm shows me the title as: ÌÌÌÌTitle
It would be nice if someone could help me.
PS: Sry for my spell or language mistakes. I'm a german guy