I found this tutorial a few days ago and I followed it. Seeing as I am only interested in loading text from the resource file, I only used the that was relevant to what I needed. The code can be found from the tutorial can be found here. Note: I am using code from the functions GetResourceAsPointer and GetResourceAsString. I have:
- created the resource file which contains one text file. The text file contains "test"
- included {$R resource.res}
Note: I use a memo to load the string from resource.
The program is able to compile without any errors but when I click the button to load the string into the memo, a string is loaded but not "test". Instead I get random characters such a squares and Chinese characters.
Does anyone know what the problem could be? Has anyone experience this before?
Thank you in advanced, Peter