Can't find in 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
Zeromus
Posts: 16
Joined: Mon Mar 05, 2007 1:53 am

Can't find in dll

Post by Zeromus »

I don't get it, I have the dll in all the directories but it still can't find it.
Image
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

In all directories meaning which?

It should be next to your .exe OR in the root directory of windows and registered. (not recommended)

This looks like an error you get when you have the build properties wrong.

which IDE is this msvc 8? 2005 express??

try in properties windows:console something or another you'll find it if you look. thats what it looks like to me.


EDIT: oh no wait... are you building in debug and using a release version dll?? try that.. forget what i said before it wouldn't compile that way.
Zeromus
Posts: 16
Joined: Mon Mar 05, 2007 1:53 am

Post by Zeromus »

I'm using using VC++ 2005 Express, and I tried compiling with the release but it still gives me the same error message. I put it in the projects directory, the deug debug directory, the release directory and just about any project associated with this one.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

then its something else.

if you're sure your build properties are correct then post some code.

start with your device initialization line.

it's not finding irrlicht for some reason it is included right?
can you compile any examples?
Zeromus
Posts: 16
Joined: Mon Mar 05, 2007 1:53 am

Post by Zeromus »

Yup, I can compile all the examples. I started a blank project to see if I can compile a simple program, apperantly I have to do something to make it work. I also compied the dll and the libaray for all the directories.

Code: Select all

#include <windows.h>
#include <irrlicht.h>

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

#pragma comment(lib,"Irrlicht.lib")


int main()
{

/*
1) Create the device and pointer it.
*/
IrrlichtDevice * device = createDevice(video::EDT_OPENGL,dimension2d<int>(640,480),16,0,0,0,0,0);
/*
2)Set the window caption
*/
device->setWindowCaption(L"Blank Project Example");
/*
3)Simplify the use of the the driver, scene manager, and GUI interface. 
*/
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* scenman = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
/*
4)Do stuff!
*/
guienv->addStaticText(L"Hello, World!",rect<int>(0,0,100,100),1,0,0,0,1);

scenman->addCameraSceneNode(0,vector3df(0,0,0),vector3df(10,10,0),0);

		while(device->run())
		{
			driver->beginScene(1,1,SColor(255,0,10,200));
			scenman->drawAll();
			guienv->drawAll();
			driver->endScene();
		}
		device->drop();
		return 0;
}
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

:lol:

That does not mean you dont have the DLL!! That means you are using the wrong one!!!
Zeromus
Posts: 16
Joined: Mon Mar 05, 2007 1:53 am

Post by Zeromus »

BlindSide wrote::lol:

That does not mean you dont have the DLL!! That means you are using the wrong one!!!
How do I know which one to use? I think I used all of them cause the first time I compiled I got the same error message.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

oh right that didn't even occure to me lol.

yeah just use the visual studio version.

bin/visual studio/blah
Zeromus
Posts: 16
Joined: Mon Mar 05, 2007 1:53 am

Post by Zeromus »

Um, what directory should I put it in? Debug, Release, Project?
Zeromus
Posts: 16
Joined: Mon Mar 05, 2007 1:53 am

Post by Zeromus »

Image
Post Reply