ya but that is so simple, it should have been fixed awhile ago
exemple in visual studio 2005 in the project properties
I did a search yesterday about that and your program itself will run fine into framework x64, the thing that make it crash is that devIL.net.dll won't run into x64 framework, so you either have the choice to recompile it in x64 or tell the main program to use x86 framework