Thanks everyone. I finally found out that the library I was using, was built using a 32 bit compiler and my nim application was built using a 64 bit compiler. This links below can shed more light
* [http://stackoverflow.com/questions/26435745/vs2013-loadlibrary-cannot-find-dll](http://stackoverflow.com/questions/26435745/vs2013-loadlibrary-cannot-find-dll) * [http://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows](http://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows)
