SFML community forums

Help => Window => Topic started by: reven on August 16, 2007, 10:48:12 pm

Title: Window Caption is weird.
Post by: reven 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:
(http://image.bayimg.com/kaficaabl.jpg)

Also it would be nice to see a function for changing the window caption.
Title: Window Caption is weird.
Post by: Alp 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.
Title: Window Caption is weird.
Post by: Mox Le Naute 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: