I have compiled open cascade for 64 bit and using it on a windows 7 64 bit system.
I get this exception
Device = new Graphic3d_WNTGraphicDevice();
and it appears that this exception is thrown in Graphic3d_WNTGraphicDevice::SetGraphicDriver because TKOpenGl.dll could not be found by the library loader.
But setting the variable does not fix the problem, and it doesn't help putting TKOpenGl.dll in the exe directory.
Any idea how to fix this?