The problem is that DLL names for all version are the same. If I add all DLL locations into PATH environment variable will an application compiled with Visual Studio 2008 for 32 bit platform find the right tbb.dll file?
Maybe it is better to recompile DLLs with different names for different platforms? For example, 32 bit version for Visual Studio 2008 would be named tbb_vc9_32bit.dll or something similar. What is the easiest way to change dll names?