1: Add the text to the end of the .EXE-file. This approach requires that you know the exact length of the .EXE itself. The lenght-information can be read in the .EXE file header i believe.
2: Have a known pattern of text and search for that pattern in the file. This limit the possible length but could be handy for keys and such.
There might be limitations to these approches that i does not know but i'v tried the first way and it worked nice, i did however had to compile 2 times, the first time to get the size, then write it in and then compile the final.
I can now access these resources by using their number 1000 and 1001. In my case i alter the glyph on a speedbutton to one these two bitmaps through a '->LoadFromRecourceID' call.
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.