Help => General => Topic started by: Euqcerin on October 26, 2012, 09:46:06 am
Title: Project can't find main function after changing computer.
Post by: Euqcerin on October 26, 2012, 09:46:06 am
So I currently work on a project in school using sfml. So I use two different computers to do this, but my project is in a dropbox folder on both computers so I ain't altering any of the files when I switch computers.
Anyways, to the problem. When I worked from home this morning it worked perfectly fine and when I was finished I updated the project in my db folder. Now when I got to school and try to start the exact same program all I get is a console window instead of the sfml game.
I'm using Visual Studios Ultimate 2010 C++. With sfml 1.6 (this is due to a tutorial I choose to follow to get me started).
Any help is appreciated. BR, Fredrik
Title: AW: Project can't find main function after changing computer.
Post by: eXpl0it3r on October 26, 2012, 09:50:28 am
My guess would be that the window resolution is bigger than the screen resolution and thus it doesn't show (see the issue tracker for thos bug).
Title: Re: Project can't find main function after changing computer.
Post by: Euqcerin on October 26, 2012, 09:54:04 am
The resolution of the program is 1024x768 and the resolution on both my computers are 1920x1080.
This is my main function.
#include "stdafx.h" #include "Game.h"
int main() { HWND hwnd = GetConsoleWindow(); ShowWindow(hwnd, 0);
Game::Start();
return0;
}
Title: Re: Project can't find main function after changing computer.
Post by: Laurent on October 26, 2012, 09:56:26 am
ATI/AMD graphics card?
Title: Re: Project can't find main function after changing computer.
Post by: Euqcerin on October 26, 2012, 09:59:41 am
At home it's a GTX 470. At school it's something in the Radeon 7800 series.
Title: Re: Project can't find main function after changing computer.
Post by: Laurent on October 26, 2012, 10:03:14 am
This is a known bug. Link SFML statically, or use SFML 2.
Title: Re: Project can't find main function after changing computer.
Post by: Euqcerin on October 26, 2012, 10:05:44 am