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

Author Topic: Faster  (Read 13767 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Re: Faster
« Reply #15 on: December 10, 2013, 07:14:46 am »
Do you need that file to run a program from an executable or only if you are running it from Visual Studio?
If you run it from VS, then you have VS and all the needed DLLs installed.
Thus it's needed when running the application.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

KarmaKilledtheCat

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Email
Re: AW: Re: Faster
« Reply #16 on: December 10, 2013, 11:33:58 pm »
Do you need that file to run a program from an executable or only if you are running it from Visual Studio?
If you run it from VS, then you have VS and all the needed DLLs installed.
Thus it's needed when running the application.

Ok, so how can I allow people who don't have that file to run the program? Do I just add the .dll to the place where the rest of the .dlls are?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Faster
« Reply #17 on: December 10, 2013, 11:42:30 pm »
If im not mistaken, the required DLL is a part of the Visual C++ redistributable package for Visual Studio 2013 Preview. I had to install it myself in order to try this game.

As Grimshaw said, let them install the Redistributable or you can add the dlls next to your exe.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

KarmaKilledtheCat

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Email
Re: Faster
« Reply #18 on: December 11, 2013, 01:19:39 am »
The download has been updated to include MSVCR120.dll. Hopefully this works.

KarmaKilledtheCat

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Email
Re: Faster
« Reply #19 on: February 19, 2014, 04:19:33 am »
I have fixed a lot of bugs and added more blocks to the level generator. The link is updated.

Giblit

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Re: Faster
« Reply #20 on: February 19, 2014, 08:27:20 pm »
Quote
I thought that the sf::Event held a stack of all events processed in the frame. I could be wrong though, I will look back at the tutorials.
No one else mentioned this but you call
Code: [Select]
while( window.pollevent( Event ) ). Each time you call
Code: [Select]
window.pollEvent( Event ) it pops the Event on the top of the queue so by the time the while loop is done you will have only the very last event for
Code: [Select]
ScreenManager::GetInstance().Update(Window, Event);

Quote
bool sf::Window::pollEvent   (   Event &    event   )   
Pop the event on top of the event queue, if any, and return it.

This function is not blocking: if there's no pending event then it will return false and leave event unmodified. Note that more than one event may be present in the event queue, thus you should always call this function in a loop to make sure that you process every pending event.

sf::Event event;
while (window.pollEvent(event))
{
   // process event...
}
Parameters
event   Event to be returned
Returns
True if an event was returned, or false if the event queue was empty
See Also
waitEvent
http://www.sfml-dev.org/documentation/2.1/classsf_1_1Window.php#a338e996585faf82e93069858e3b531b7
« Last Edit: February 19, 2014, 08:29:39 pm by Giblit »