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

Author Topic: [Solved] MSVS2012 and SFML After compiled problem  (Read 1480 times)

0 Members and 1 Guest are viewing this topic.

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
[Solved] MSVS2012 and SFML After compiled problem
« on: May 26, 2013, 12:03:55 am »
Hello everyone,

I've just compiled my SFMl program using MSVS2012 and SFML.

As for MSVS, i used release configuration, turning down any debug options,
using the SFMl x86 include and lib folders, including all the libs into the linker
and including the dlls to the folder where the exe is.

Once I click th executable, I open it and play it perfectly, but when a friend
tries to open it in his computer, the SFML window opens but it keeps as a blank
window minimized into the window taskbar.

Since this friend has already installed every dependencie from MSVS (c++ redistributable and net framework)
I believe its something about how I compiled SFML or how I programmed SFML.

EDIT: IT was resolution

If there is something wrong there which is not allowing other people to run it
or if you have this matter before please tell me so I can solve it.

Thank you!
« Last Edit: May 26, 2013, 12:46:38 am by Sakurazaki »
こんな私も変われるのならもし変われるのなら白になる

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: MSVS2012 and SFML After compiled problem
« Reply #1 on: May 26, 2013, 12:37:40 am »
Resolution seems suspiciously high, if it's bigger than his screen it'll cause problems. Lower it to fit window and its decorations(big top titlebar and small borders on all sides) into his screen.
I think window->setPosition(0.f,0.f); also works, because window spawns outside of the screen.
Back to C++ gamedev with SFML in May 2023

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
Re: MSVS2012 and SFML After compiled problem
« Reply #2 on: May 26, 2013, 12:39:42 am »
Dude, you are my salvator, that was everything!!

Thank you very much. when i become rich with my game, ill build a golden statue in your honor.!!
« Last Edit: May 26, 2013, 12:46:05 am by Sakurazaki »
こんな私も変われるのならもし変われるのなら白になる

 

anything