Hope someone can help me here. I have a function which reads the windows registry below - this works perfectly when it's called from a 64 bit application called MetaTrader 5 but when it's recompiled for the 32 bit version of MetaTrader 5 (using the /x86 switch in the SDK 7.1 it doesn't work when called from the 32 bit app?
This is doing my head in!
Here's the code..
By the way - rgValue is declared as 'char rgValue;' as a global variable in the declarations at the start of the program. The section below is just the function which queries the registry.