Page 1 of 2

Password,ico,ect.

Posted: Fri Jan 13, 2006 7:22 am
by jonasrf
1.Can anyone tell me how to do password box's? Show me an example of how to use one.

2.Can I get rid of the dos window and have everything logged to a file?

3.Put icon at top of gui apps?

1's most important.

thanks ahead of time

Posted: Fri Jan 13, 2006 1:30 pm
by Conquistador
1. Do a search in the FAQ and Project Announcements forum for some Irrlicht extensions, I'm sure someone has created the password extension, I don't remember the username, though.

2. Do a search in the FAQ forum

3. Irrlicht 0.14 will automatically put an icon in the window if there is an icon in the executable directory with the name irr.ico, check the change log for confirmation on that, though.

Posted: Fri Jan 13, 2006 2:07 pm
by Acki
Yes, I did the password edit box !!! ;)
Have a look at my site...

Posted: Sat Jan 14, 2006 3:27 am
by jonasrf
Yes I did! but I don't understand the language its in though so I'm not sure were to click to download it.[edit=never mind I got it]

I'll try the icon thing
and I'll search the faq
thanks

Posted: Sun Jan 15, 2006 6:37 am
by jonasrf
I Got the ico working. Haven't found how to remove the dos box. Anyone have any links for it in the faq?

Posted: Sun Jan 15, 2006 3:59 pm
by luckymutt
Are you telling me that you did a search for "log" or "logger" and didn't find *ANYTHING*???
like on the first results page?
Try it again...maybe you mispelled it.

Posted: Sun Jan 15, 2006 5:27 pm
by nomad
To get rid of the DOS window, have you tried using WINMAIN as the application entry point instead of main()?

i.e.

Code: Select all

#include<windows.h>

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
You may also need to change your compiler settings, something like /subsystem:windows instead of /subsystem:console (Visual C++)

You can output the log text to a file by using the EET_LOG_TEXT_EVENT event, there's some sample code in the FAQ forum here:
http://irrlicht.sourceforge.net/phpBB2/ ... vent#58331


[/list]

Posted: Tue Jan 17, 2006 3:53 am
by jonasrf
no I had not tried that. So I use that instead of just main and it will remove the dos window.

I'll try it and the log code.

Posted: Fri Feb 03, 2006 10:28 pm
by jonasrf
I tried that but it wouldn't work.

Posted: Fri Feb 03, 2006 10:47 pm
by TheRLG
What compiler IDE are you using? I'm not sure you mean the DOS window, maybe just the console window, in which case you can turn that off in the compiler settings.

Posted: Sat Feb 04, 2006 4:28 am
by jonasrf
yea that's what I'm talking about is the console window aka dos window.

I'm using dev-cpp.

Posted: Sat Feb 04, 2006 5:40 pm
by killzone721
I think you mean that when u compile ur program u don't wan the dos console showing up, which oftem says stuff like loding this.. and loding that.

It that is ur problem then simply change your project settings to windows app instead of dos console.

How do it:

when u start a new project, pick the windows app option instead of dos console..

HOPE THIS HELPS

Posted: Sat Feb 04, 2006 6:24 pm
by MikeR
With dev-cpp is real easy to get rid of the dos window.

It's posted in the faq forum somewhere.

open dev-cpp
open your project
click project (in the nav bar)
project options
compiler
linker
Then, look down the options.
Find "Do not create console window".
click "No" and change it to "yes" and it won't make the dos window.
click ok and you are done.

Posted: Sat Feb 04, 2006 8:35 pm
by jonasrf
Hey thanks.

killzone721 I'm talking about the dos window that comes up when I run my application. I could care less if it showed one while it compiled.

So by changing that option it will remove the dos window that comes up when I run my program.

Posted: Sat Feb 04, 2006 8:38 pm
by MikeR
So by changing that option it will remove the dos window that comes up when I run my program.
Yes.