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 - helo

Pages: [1]
1
Network / [UDP-Socket] find out the src-Port while Sending
« on: November 26, 2010, 07:49:48 am »
I think I found a solution myself: Bind the Sending Socket before Sending.

2
Network / [UDP-Socket] find out the src-Port while Sending
« on: November 26, 2010, 12:35:45 am »
Hi
I´m trying to make a programm sending an info-query to an server and handle the answer, but the server sends his response to the port the query came from. Therefore I must know which port was used for the request. Is this possible?

3
Graphics / [solved]programm crashes at the end
« on: March 11, 2010, 09:17:53 pm »
I solved my Problem through replacing an array of pointers to objects with a sprite with an array of the objects directly.

4
Graphics / [solved]programm crashes at the end
« on: March 11, 2010, 09:03:51 pm »
Code: [Select]
#define SPRITE_AMOUNT 100000

#include <SFML/Graphics.hpp>

using namespace std;
using namespace sf;

int main()
{

    RenderWindow MyApp(sf::VideoMode(800, 600, 32), "SFML Graphics");

    Image MyImage = Image();

    Sprite MySprites[SPRITE_AMOUNT];

    MyImage.Create(10,10,Color(120,155,0));

    for(int i=0;i<SPRITE_AMOUNT;i++)
    {
        int j = i%100;
        MySprites[i] = Sprite();
        MySprites[i].SetImage(MyImage);
        MySprites[i].SetPosition(j*10,i);
    };

    while(MyApp.IsOpened())
    {
        MyApp.Clear();
        Event MyEvent;
        MyApp.GetEvent(MyEvent);

        if (MyEvent.Type == sf::Event::Closed)
        {
            MyApp.Close();
        }

        for(int i=0;i<SPRITE_AMOUNT;i++)
        {
            MyApp.Draw(MySprites[i]);
        };


        MyApp.Display();
    }



    return 0;
}


thats the maximum of reducing, I hope, but the mistake got lost on the way^^ Here I can use 20000 sprites and even more I think without breaking down  :wink:
The mistake have to be in my Code!

5
Graphics / [solved]programm crashes at the end
« on: March 11, 2010, 05:06:38 pm »
@phear & dunce: hmm k  :?:
@Laurent: Ok I think, now I understood what you mean  :D

6
Graphics / [solved]programm crashes at the end
« on: March 10, 2010, 12:14:36 pm »
Here(not anymore) it is reduced almost to the minimum, I think.

7
Graphics / [solved]programm crashes at the end
« on: March 10, 2010, 12:01:49 pm »
Ok I´ll try to^^

8
Graphics / [solved]programm crashes at the end
« on: March 09, 2010, 09:38:49 pm »
@phear-:I have an ATI Graphics Card.
@Laurent:
If you have that much time to look after it in my source code it would be very nice. It is too much code to add it to this post, I think, therefore I uploaded it http://here

9
Graphics / [solved]programm crashes at the end
« on: March 09, 2010, 05:26:41 pm »
My Programm ,using sprites, crashes when I close it and about 70 sprites are used, one sprite less and it works fine, is there any maximum amoung of sprites within the library or is it my Code causing the crash?

10
General / [SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« on: October 27, 2009, 09:38:13 pm »
I recognized it a few moments ago when I had already installed CodeBlocks and wanted too set this thread solved, but thanks for answering silly questions :oops: .
 
By the way you made a very nice library :D

11
General / [SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« on: October 27, 2009, 08:09:46 pm »
Is there noone with an idea?
Then I have to switch to codeblocks^^

12
General / [SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« on: October 25, 2009, 05:50:44 pm »
I thought it was solved, but it isn´t. I just got another test-example-code.
The errors occur every time I try to use the RenderingWindow-Class.
Any idea what can cause this errors?

Quote from: "Hiura"
Is the same error? http://www.sfml-dev.org/forum/viewtopic.php?t=1553&highlight=lnk2019

It is the same Linker Error, but this thread don´t really help me.

13
General / [SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« on: October 24, 2009, 01:10:13 pm »
I don´t think so,  but anyway, I downloaded sfml again, compiled it and now my errors are disappeared.
 :oops:
Though thanks for answering !

14
General / [SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« on: October 23, 2009, 04:53:39 pm »
I tried to Compile width Visual c++ 2008 the Test-Code from the Setting up Tutorial  but I always get these errors:
Quote
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (??1RenderWindow@sf@@UAE@XZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall sf::Window::Close(void)" (?Close@Window@sf@@QAEXXZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __thiscall sf::Window::IsOpened(void)const " (?IsOpened@Window@sf@@QBE_NXZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (??0RenderWindow@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z)" in Funktion "_main".


I think I have forgot something or done something wrong, but I have no idea what;

I´ve done:
1.)Compiled the Build-Projects in all possible ways(dll-static...)
2.)added the directories (lib, include)
3.)created the project, copied the code and added the additional linker depencies
4.)when i tried to use the dynamik linked library i added this entry for the präprocessor , too

what are the errors about, what causes them, what did I forgot?
{thanks for help :wink: }

Pages: [1]