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

Author Topic: Window Caption is weird.  (Read 8282 times)

0 Members and 1 Guest are viewing this topic.

reven

  • Newbie
  • *
  • Posts: 3
    • View Profile
Window Caption is weird.
« on: August 16, 2007, 10:48:12 pm »
I somehow think you have a lil' bug in the window caption when creating a window.

I'm using MSVC 2008 Beta 2, and I finally got things running just fine. However, when a window is created, the caption is the caption chosen, but some random garbage is included before the actual text.

Here is a screen:


Also it would be nice to see a function for changing the window caption.

Alp

  • Jr. Member
  • **
  • Posts: 56
    • MSN Messenger - alpmestan@hotmail.com
    • View Profile
    • http://alp.developpez.com/
    • Email
Window Caption is weird.
« Reply #1 on: August 17, 2007, 02:26:37 am »
I had the same problem few days ago.

It was because i was confusin static and dynamic linking with my libraries.

Check that you're on the right mode in VS.

The best way to handle it is to add your project to the SFML solution of the SDK, and then to remove any library you're linking. Then, just tick the libraries you need on your project dependencies window.
After that, choosing the mode (debug/release static/dll) will configure all the solution (sfml+your project) for dynamic/static linking in debug/release, depending on what you'll have chosen.
SFML developper

Mox Le Naute

  • Newbie
  • *
  • Posts: 20
    • MSN Messenger - mox.lenaute@free.fr
    • View Profile
Window Caption is weird.
« Reply #2 on: August 26, 2007, 09:39:39 pm »
Hi, I had the same problem today  :lol:

It was because when i was in Debug mode, i didn't use debug library, so:

project=>propertie (alt +F7)=>linker?=>Imput
TOP: Active(debug) or debug
dependencies : sfml-graphics-d.lib sfml-window-d.lib sfml-system-d.lib opengl32.lib glu32.lib

PS: i use Visual Studio in French
PPs: sorry for my english  :oops:
Etudiant ENSEIRB
Ubuntu Gutsy / Emacs

 

anything