Page 1 of 1

cant load dll

Posted: Sun Sep 07, 2008 11:47 pm
by spiff88
i built the hello world tutorial in vc++ 2008 and it told me that it couldnt find the irrlicht.dll im pretty sure i got its directory right in the options>projectsandsolutions>directories>DLL-<irrlichtfolder/lib/win32-visualstudio> im pretty sure thats where the dll is and ive mad that the directory but i get the error so can someone please help?

Posted: Mon Sep 08, 2008 1:16 am
by CuteAlien
Put the dll beside your executable.

There are a few more places (http://msdn.microsoft.com/en-us/library/ms682586.aspx) where you could put it, but putting it beside the exe is the safest thing to do.

Posted: Mon Sep 08, 2008 3:11 am
by chaitanyaraghav
copy the dll in visual studio 32 folder to system32 folder in windows

Posted: Mon Sep 08, 2008 7:32 am
by JP
Yeah not the best idea to put it in your system32 folder, it will work but when you want to distribute the game to other PCs they won't have the required DLL so it's just easier to stick it in the directory that your executable is in.

Posted: Mon Sep 08, 2008 9:10 pm
by spiff88
didnt work says:
Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process load

and it mentions reinstalling the program

Posted: Mon Sep 08, 2008 9:18 pm
by CuteAlien
Error message are a useful thing to read. If it says it does not find a dll then it does not find it. If you put it beside the .exe and you still get that error, then it's the wrong dll.

Posted: Mon Sep 08, 2008 9:29 pm
by spiff88
i went into to the irrlicht>bin>win32-visualstudio and copied the lib file from it and pasted it next to the executable and i got the error as said before

Posted: Mon Sep 08, 2008 9:35 pm
by spiff88
never mind i gots it :D