Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] Window Title  (Read 3294 times)

0 Members and 1 Guest are viewing this topic.

WorldRacer

  • Newbie
  • *
  • Posts: 16
    • View Profile
[SOLVED] Window Title
« 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;

}



Seby

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
[SOLVED] Window Title
« Reply #1 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())

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] Window Title
« Reply #2 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.
Laurent Gomila - SFML developer

WorldRacer

  • Newbie
  • *
  • Posts: 16
    • View Profile
[SOLVED] Window Title
« Reply #3 on: May 21, 2009, 07:50:05 pm »
Thank you very much. It works now