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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Heero

Pages: [1]
1
Graphics / Display a value *Solved*
« on: October 20, 2007, 02:44:31 pm »
Thanks Laurent, thats looks much better :)

2
Graphics / Display a value *Solved*
« on: October 19, 2007, 01:24:06 pm »
Is it possible to display a value in a window?
I want you display the mouse position in a window, but String can only handle std::strings.
Must I convert my float value to string to be able to display the text?

Heero

*Solved*

It now works, i use this code to display a value in the window.

Code: [Select]
_itoa(Sprite.GetRotation(), buffer, 10);
String.SetText(buffer);

3
General / Problem with installation *SOLVED*
« on: October 09, 2007, 01:19:19 am »
*SOLVED*

I found the problem, somehow i missed the last part in the tutorial, the Linker part was the problem.
--------------------------------------------------------------------------------------

Just installed SFML and followed the tutorial for VS, but I have problems when I try to compile this code, from the tutorial for VS.

Code: [Select]
#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}

I have Visual C++ 2005 Express Edition installed and downloaded "Microsoft Platform SDK for Windows Server 2003 R2" because there where some problems with the "windows.h" file.

But when im trying to compile, this problem occurs

Code: [Select]
[size=9]------Build started: Project: SMFL First Test, Configuration: Debug Win32 ------
Linking...
main.obj : error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function _main
C:\SFML\Projekt\SMFL First Test\Debug\SMFL First Test.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\SFML\Projekt\SMFL First Test\SMFL First Test\Debug\BuildLog.htm"
SMFL First Test - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========[/size]


Im new to this so I dont know where I should start looking.

Pages: [1]