SFML community forums
Help => Window => Topic started by: WorldRacer on May 21, 2009, 06:10:18 pm
-
Hi,
switched from SDL to SFML. My first Problem is:
How do I remove the ÌÌÌÌ in front of my Window name?
Code:
int main(int argc, char** argv)
{
// Create the main window
int iWidth = 800;
int iHeight = 600;
int iDepth = 32;
char* sTitle = "SkipBo";
std::cout << "[Graphics]: Creating Window (" << iWidth << "x" << iHeight << "x" << iDepth << " - \"" << sTitle << "\")" << std::endl;
sf::Window App(sf::VideoMode(iWidth, iHeight, iDepth), sTitle);
std::cout << "[Graphics]: Opening this Window" << std::endl;
App.Create(sf::VideoMode(iWidth, iHeight, iDepth), sTitle);
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
(http://www.devforyou.de/screenshot.jpg)
-
Try with:
string sTitle = "SkipBo";
Declaration of the 'Window' constructor:
Window (VideoMode Mode, const std::string &Title, unsigned long WindowStyle=Style::Resize|Style::Close, const WindowSettings &Params=WindowSettings())
-
Don't mix debug and release configurations If you're in debug mode, link to the libraries with the "-d" suffix.
-
Thank you very much. It works now