I am trying to set a run key for my application so that it will be loaded when Windows starts. Everything is working except for the fact that the value of the new string I create under the run key seems to cut off at 32 characters. For example, if I tried to set it to c:\Users\MichaelW\AppData\Roaming\Custom\application.exe it shows up as c:\Users\MichaelW\AppData\Roaminin. Also, I did not include the code to get the rootDrive (e.g. C:) and current user but I can if need be. I am very new to c++ so any help would be appreciated.