tags:

views:

38

answers:

2

Hi everyone...

I want to use textures in opengl on my C# application. I'm using the Tao Framework and I used this code

http://www.gamedev.net/community/for...opic_id=405453 (post #2)

But I got this runtime error:

An unhandled exception of type 'System.DllNotFoundException' occurred in WindowsFormsApplication1.exe

Additional information: Unable to load DLL 'DevIL.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Could someone help me?

Is there any other way to do this?

A: 

It looks like the problem is the loading of the dll. You should make sure the dll is properly importer in your project through the references. Also make sure that you haven't moved or deleted the dll after you have added it to your project.

Gimly
I added it to my referencesAnd I haven't moved it!
mrbm
Then, did you check if you have read access to the file, and everything is fine? What is sure is that Visual Studio doesn't have access to the file or fail to find it, so there must be an issue with it somewhere.
Gimly
Yes, I am.And if VS can't access it, why when I'm typing it can detect module's name
mrbm
Maybe it is about dll registration (or something like that) ?
mrbm
A: 

It suggests you are missing DevIL. Try getting it and installing it before proceeding.

Goz
But I have it in hereC:\Program Files\TaoFramework\bin
mrbm
http://flashexperiments.insh-allah.com/ApacheError126.html
Goz