SFML community forums

Help => Window => Topic started by: WorldRacer on May 21, 2009, 06:10:18 pm

Title: [SOLVED] Window Title
Post 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:
Code: [Select]
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)
Title: [SOLVED] Window Title
Post by: Seby on May 21, 2009, 07:00:56 pm
Try with:
Code: [Select]
string sTitle      = "SkipBo";

Declaration of the 'Window' constructor:
Code: [Select]
Window (VideoMode Mode, const std::string &Title, unsigned long WindowStyle=Style::Resize|Style::Close, const WindowSettings &Params=WindowSettings())
Title: [SOLVED] Window Title
Post by: Laurent on May 21, 2009, 07:19:27 pm
Don't mix debug and release configurations If you're in debug mode, link to the libraries with the "-d" suffix.
Title: [SOLVED] Window Title
Post by: WorldRacer on May 21, 2009, 07:50:05 pm
Thank you very much. It works now