Thanks for your reply. But the problem isn't getting fixed even when I change the Platform Target to x86.
Another point to note is that when I was loading the DLL into my project, I navigated to the bin/64bit folder in Gurobi folder. There are no 32 bit DLLs available. Do you think this is something that has to do with the version of Gurobi? I am using the latest 5.0 version.
Vamsi