EDIT 2: Okay, so I switched to Orwell DevC ++, which contains "winnt.h", which contains #define KEY_WOW64_64KEY 0x0100, but it still does not work. (See EDIT 1 :)
EDIT 1: I looked at "winnt.h" that appeared along with CodeBlock and DevC ++, and DevC ++ skips the following lines:
#if (_WIN32_WINNT >= 0x0502) #define KEY_WOW64_64KEY 0x0100 #define KEY_WOW64_32KEY 0x0200 #endif
And installing the above code in wint.h from DevC ++ does not work.
Original post: I have a 32-bit application (DevC ++ and Windows 7 development 64 bit) that reads the 64-bit application registry as one of its tasks, so I try to use the "KEY_WOW64_64KEY" flag in RegOpenKeyEx and did not find any messages about how to use it with _WIN32_WINNT: this and
It worked like a charm when I used it in the CodeBlock project (test project), but the same code doesnโt work with DevC ++, I canโt transfer it to the code block, because there are other problems in the code block.
How do I get to work with DevC ++?
thanks
source share