If you get this error message:
[color=#800000]An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)[/color]
Then you have to do this:
[color=#000080]Select Tools / Options / Projects and Solutions / General
Check the ‘Show advanced build configurations’ check box.
Then select the menu option: Build / Configuration Manager
In the column ‘Platform’ select <new…>
To the ‘New platform’ select x86
Now go to menu Project / Properties… There under the Compile and Debug tabs there should be ‘Active (x86)’