[SOLVED] DllNotFoundException on a test computer?

Using Windows; my DLL is in the root of my built exe directory, and works on two test computers but not on the third. Output.log gives me the dreaded DllNotFoundException.

Does anyone have any suggestions on what could be causing this?

Test computer 1:Windows XP SP2 64bit (works)

Test computer 2:Windows XP SP2 64bit (works)

Test computer 3:Windows XP SP2 32bit (DllNotFoundException!) :o

Can it be that the 64bit DLL will not work with 32 bit?

*EDIT

OK, I just verified my DLL “Platform” settings are set to (Win32) so maybe it’s not that?

I would guess its more likely that you use something in the dll thats not present on the old machine.

can be that it is something as trivial as missing VC runtime libraries for the version of VC you use for example.

if the dll is set to compile to 32bit only and all dll you talk to are 32bit too you should normally be fine

Thanks for the reply dreamora, that is the case.

I installed the 2008 C++ redistributable on the test machine and it now works.

Do you know if there a way for me to include a DLL in the root instead of having someone install a redistributable?

*EDIT
This has my answer, and yes it appears to be possible:
http://msdn.microsoft.com/en-us/library/8kche8ah.aspx