Which OS, C::B version, compiler (version), wizard, CPU (if that's really the problem) do you use ?
The bogus code would help too, so we can try to reproduce the behavior. It will also allow us to know if the problem is from the code or the compiler.
The problem is most likely not originating from Code::Blocks, but who knows?
So we need:
Host OS (on which you compile the code)
Host CPU (architecture, x86? IA64? AMD64? ARM?...)
Target OS (on which you run the code)
Target CPU
Compiler Name
Compile Version
Code::Blocks Version
As you wrote that they are *.EXEs, I am assuming that you are on Windows. Since you did not provide the version of Code::Blocks, I am assuming you used the latest release 8.02 with MinGW and gcc. Therefore, do not forget that some functions on more recent versions of Windows might not have the same effect on earlier versions under some circumstances, or may not even be available. See MSDN for more information about the different versions of the Windows API. The "Remarks" section usually describes those differences, and at the bottom of the pages is mentioned on which version it is available.