half-solved: editbox in hello world?
half-solved: editbox in hello world?
okay. i've got a very weird problem. i can't add an editbox. not even in the hello world example for dev-c++. if i do, i get the standard windows error. the "send report/don't send" screen. i just copied the statictext adding function and changed the function name to addEditBox. it should work, as far as i know, but it doesn't. i use the standard irrlicht dll for win32-gcc.
FTW???
-EDIT: this problem stopped occuring when i compiled in debug mode once. then, i went back to normal, non-debugging mode, and it still worked.
FTW???
-EDIT: this problem stopped occuring when i compiled in debug mode once. then, i went back to normal, non-debugging mode, and it still worked.
Last edited by cyanide on Sun Sep 24, 2006 7:21 am, edited 1 time in total.
Well, shall we guess what you did !?!?!
Show us your code (only the relevant part), please...
Show us your code (only the relevant part), please...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
well, to recreate my last bit of code... the hello world edit, that is... just put
guienv->addEditBox(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
right under
guienv->addStaticText(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
in an otherwise unmodified irrlicht 1.1 folder, freshly unzipped with the 32-bit gcc dll put in the windows folder. used on windows xp sp2, dev-c++ 4.9.9.2, from the .dev file.
does no-one else have this problem?
guienv->addEditBox(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
right under
guienv->addStaticText(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
in an otherwise unmodified irrlicht 1.1 folder, freshly unzipped with the 32-bit gcc dll put in the windows folder. used on windows xp sp2, dev-c++ 4.9.9.2, from the .dev file.
does no-one else have this problem?
Hmmm, I did it like you said and it works perfectly !!!
Except that the edit box and the static text are located at the same position (change the rect of one of them)...
So the error must be caused somewhere else...
Can the Irrlicht dll be found by the program ???
Just place a copy of the right dll into the exe folder or windows/system32 folder !!!
Except that the edit box and the static text are located at the same position (change the rect of one of them)...
So the error must be caused somewhere else...
Can the Irrlicht dll be found by the program ???
Just place a copy of the right dll into the exe folder or windows/system32 folder !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
uhm, yeah. i just thought that i might have changed the dll's. so i copied the original dll to my windows folder (same size as what i had), and no difference. any example i hadn't modified screwed up as well. so i just unzipped the whole folder again (kept a separate folder for the project i'm working on, so the irrlicht folder is just for modifying the dll)
... just tried that, and it still gives the same error. clean folder. straaaaange.
currently re-installing dev-c++, in the desperate hope that it'll let me compile irrlicht-apps again...
wtfworthy. i replaced everything of the original irrlicht 1.1 folder (and the dll in the system32 dir), and yet everything in that folder keeps on locking up. the stuff in my project folder won't lock up unless i try to add an editbox. ugh...
the strangest part is, that my project files still work. unless, of course, i try the dreaded guienv->addEditBox(...);.
seems that it can't load sydney.md2 anymore, and that's why all the examples stopped working suddenly...
... just tried that, and it still gives the same error. clean folder. straaaaange.
currently re-installing dev-c++, in the desperate hope that it'll let me compile irrlicht-apps again...
wtfworthy. i replaced everything of the original irrlicht 1.1 folder (and the dll in the system32 dir), and yet everything in that folder keeps on locking up. the stuff in my project folder won't lock up unless i try to add an editbox. ugh...
the strangest part is, that my project files still work. unless, of course, i try the dreaded guienv->addEditBox(...);.
seems that it can't load sydney.md2 anymore, and that's why all the examples stopped working suddenly...
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
They are in the same position....cyanide wrote:well, to recreate my last bit of code... the hello world edit, that is... just put
guienv->addEditBox(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
right under
guienv->addStaticText(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
in an otherwise unmodified irrlicht 1.1 folder, freshly unzipped with the 32-bit gcc dll put in the windows folder. used on windows xp sp2, dev-c++ 4.9.9.2, from the .dev file.
does no-one else have this problem?
Code: Select all
guienv->addEditBox(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
right under
guienv->addStaticText(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
Code: Select all
guienv->addEditBox(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,10,260,22), true);
right under
guienv->addStaticText(L"Hello World! This is the Irrlicht Apfelbaum Software renderer!",
rect<int>(10,15,260,27), true);
Yes, that's what I mentioned, too...
But this doesn't explain why the exe crashes, it should run with no problems...
Well, another guess:
Did you try OpenGL as driver (the gcc dll doesn't support DX) ?!?!?
Be sure all used meshes can be found by the exe, or remove all mesh loadings from the source (comment them out) so only the gui will be created...
But this doesn't explain why the exe crashes, it should run with no problems...
Well, another guess:
Did you try OpenGL as driver (the gcc dll doesn't support DX) ?!?!?
Be sure all used meshes can be found by the exe, or remove all mesh loadings from the source (comment them out) so only the gui will be created...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
they can be found by the exe. it turns out my md2 loaded is as corrupted as my editbox. i've always used opengl... i know dec-c++ can't handle dx by default, and the irrlicht source won't compile either so i can't add dx support. the tutorial files seem to work fine once i comment out all md2 loading.
i admit it, i screwed up my computer. -EDIT: no, my computer is just insane.:EDIT-
could it be that it's somehow using a different dll than the one i put in the windows/system32 folder or the one i put in the exe's folder? where does irrlicht look for it's dll's?
newsflash: it does work, with editbox and all, under debug mode. what is different in debug mode?
-EDIT: somehow, i removed the bug by compiling in debug mode once and then just compiling normally again. i guess i don't desperately need an answer anymore, but still... if anyone's got a clue what has gotten into my computer, i'll be glad to hear.
i admit it, i screwed up my computer. -EDIT: no, my computer is just insane.:EDIT-
could it be that it's somehow using a different dll than the one i put in the windows/system32 folder or the one i put in the exe's folder? where does irrlicht look for it's dll's?
newsflash: it does work, with editbox and all, under debug mode. what is different in debug mode?
-EDIT: somehow, i removed the bug by compiling in debug mode once and then just compiling normally again. i guess i don't desperately need an answer anymore, but still... if anyone's got a clue what has gotten into my computer, i'll be glad to hear.
An exe always looks first in it's own folder for dlls and if it can't be found there it goes through the folders defined in the environment var PATH...
With Dev sometimes you'll have to "build all", because Dev doesn't handle dependencies of include files correctly (what Code::Blocks handles perfectly) !!!
But this should only be if there are more than one files in the project...
And because the most demos are build out of just one file (main.cpp) it shouldn't matter...
With Dev sometimes you'll have to "build all", because Dev doesn't handle dependencies of include files correctly (what Code::Blocks handles perfectly) !!!
But this should only be if there are more than one files in the project...
And because the most demos are build out of just one file (main.cpp) it shouldn't matter...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
correct Ctrl+F11 is "build all"...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java