If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Yeurl
Posts: 31 Joined: Thu Apr 13, 2006 9:34 am
Post
by Yeurl » Tue Nov 14, 2006 4:24 pm
Hi,
After reading this article
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=11986
i m trying to hide my consule by using the pragma methode
Code: Select all
#pragma comment(linker, "/subsystem:windows /entry:main")
It s compiling without any errors or warning, but when i try to run it, the exe crash directly
I m using visual studio 6 under c++ one.
I have create a blank projet
Can anyone help me to resolve my problem ( i have try the two other solution and i have the same problem or have about 59 errors )
Thx
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Tue Nov 14, 2006 5:13 pm
Help us to help you. How far does it get? What kind of crash? Build in debug mode, and press F10 (step). Does execution begin in your WinMain() (note: not main() ) function?
If you have a short enough main file, you might want to just post it here.
Yeurl
Posts: 31 Joined: Thu Apr 13, 2006 9:34 am
Post
by Yeurl » Mon Nov 20, 2006 10:46 am
alright after debuging with ollydbg i see that the entry point was not in correct place.
For making my hide i use this pragma
Code: Select all
#pragma comment(linker, "/nologo /subsystem:windows /entry:mainCRTStartup")
Hope that can help other users who having the same proble as me