Hi
Sorry if this has been answered before but I can find it.
I am creating a registry thing to store database connection information. I get a CString for the value. I can change the CString into a const *char but apparently it needs const unsigned *char
> subkey = new char[15];
> strcpy(subkey, "Software\\PROGRESSOR");
There are quite a few more than 15 characters in your string.
I don't see why you need to copy the string in the first place.
> unsigned long result2;
> unsigned long * presult2 = &result2;
There is no need to create separate variables for this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.