My c# project imports a DLL generated by C code, and my program calls one method in the imported DLL. Everything works fine in 32-bit PCs (XP and 7).
But the trouble is it crashes in 64-bit (Windows 7) PC.
Some Internet articles suggested to change the Build environment to "x86".
I did that to the StartUp project of my program (which consists of several projects). I right-clicked on the StartUp project, selected Properties, and I changed "Platform target" to "x86". I also did that at the top of the menu bar. (Please refer to the screenshot).
But the problem is still the same. Could someone tell me how I might fix this crash issue?