I have wrote a registry object for opening, editing, querying and deleting registry values. When I run the program I get the following error (a message box appears):
"The procedure entry point RegDeleteKeyExA could not be located in the dynamic link library ADVAPI32.dll"
Now I get this error even if I comment out the line that uses RegDeleteKeyEx. So nowhere in my code do I call RegDeleteKeyEx.
The program compiles and links fine, it is just a runtime error. Even if my program is just the following:
So I dont actually use the registry object I still get the error popup box.
return 0 ;
I thought at first it might be a dodgy install of windows but it does the same on all windows pc's i've tried.
My compiler is Visual Studio 2005 running on windows xp pro. I am not linking to any other libraries or including any additional header files (just windows.h)