cant load dll

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.
Post Reply
spiff88
Posts: 15
Joined: Fri Nov 23, 2007 5:52 pm
Location: Michigan

cant load dll

Post 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?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
chaitanyaraghav
Posts: 12
Joined: Mon Jul 07, 2008 4:26 pm
Location: India

Post by chaitanyaraghav »

copy the dll in visual studio 32 folder to system32 folder in windows
Nobody is perfect!!
nd i am nobody!!
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post 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.
Image Image Image
spiff88
Posts: 15
Joined: Fri Nov 23, 2007 5:52 pm
Location: Michigan

Post 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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
spiff88
Posts: 15
Joined: Fri Nov 23, 2007 5:52 pm
Location: Michigan

Post 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
spiff88
Posts: 15
Joined: Fri Nov 23, 2007 5:52 pm
Location: Michigan

Post by spiff88 »

never mind i gots it :D
Post Reply