Problem with saving registry values by application software

  • I have a problem with saving the registry values by application software.


    Information:
    I have made a multilingual runtime Image with English, German and Chinese languages. For this case, I want to change the language from a application program.
    For this task, I made following code in my software:



    Why doesn't work ? What kind of mistakes I do?