Registry problem
-
Hi All, I have a query regarding REGEDT32.EXE .I try to programmatically set value for a field in the Registry.This value is a string value.I am using RegSetValueEx() for this and the the maximum length of this string I am specifying as 256.Now, the problem is when the string length is less than this maximum value after the required string some junk values are put in the REGEDT32.EXE .These junk values should not be there in the value for a field.How can I do this? When I tried the same in Regedit.exe there is no such problem.Whatever may be the string length there are no junk values in the Regedit.exe. How has to be done to rectify the problem.I also tried NULL terminating the String.Still the problem persists. Thanx in advance for the help. Regards, yamini.
-
Hi All, I have a query regarding REGEDT32.EXE .I try to programmatically set value for a field in the Registry.This value is a string value.I am using RegSetValueEx() for this and the the maximum length of this string I am specifying as 256.Now, the problem is when the string length is less than this maximum value after the required string some junk values are put in the REGEDT32.EXE .These junk values should not be there in the value for a field.How can I do this? When I tried the same in Regedit.exe there is no such problem.Whatever may be the string length there are no junk values in the Regedit.exe. How has to be done to rectify the problem.I also tried NULL terminating the String.Still the problem persists. Thanx in advance for the help. Regards, yamini.