and just because of past flaming here is the error I am getting. I'm sure it will do you a lot of good *Sarcasm*
0xc000007b
I removed all useless blabbering around the only relevant information for you.
Now we google "0xc000007b error solution" and come up with the first result:
http://msoos.wordpress.com/2010/09/11/0 ... -solution/0xc000007b error comes mainly from mixing up 32bit environment with 64bit one, that is you have an 32bit application that tries to load a 64bit dll.
To see exactly who cause this you must examine your application dependencies carefully.
I used a free portable program to do this: "Dependency Walker". After you download it you can open any PE file (exe, dll, …)
Open your application executable file (in my case "testopencv.exe") with dependency walker, you sould see something like this:
As You can see, dependency walker shows all dlls my application depends on, and all dlls these dlls depends on and so on…
Now you must check these dlls to see which one is 64 bit? If your application works fine you should see nothing, but when your application throws 0xc000007b error that means you have at least one 64 bit dll in these dlls.
In my case as you see, my application depends on cv2010d.dll which depends on tbb_debug.dll which is 64bit dll (notice the 64 number near its icon). You can see the properties of any dll to find its path, my tbb_debug.dll lies on: "E:IntelCompiler11.154tbbintel64vc9bin".
Following the description, there is a solution.
Also, blindly copying DLLs around most likely will get you nowhere.