String Resources from Text Files | developer.brewmp.com String Resources from Text Files | developer.brewmp.com

Developer

String Resources from Text Files

Forums:

I'm trying to load a resource string from a bar file, using ISHELL_LoadResString.

When I set the resource's Source attribute to text, and I copy & paste my text into the appropriate dialog in the Brew Resource Editor, I get the string back from ISHELL_LoadResString just fine. However, when I set the Source attribute to 'file', and point the Resource Editor to a text file containing the same text, the string I get from ISHELL_LoadResString is invalid.

From the debugger, it looks as though the string might be uninitialized, but I'm not sure. It appears as a bunch of boxes (possibly zeroed out chars). There are a couple of non-box characters in the string, an apostrophe and a right angle bracket, but none of these appear in my text.

The size I get back from ISHELL_LoadResString seems to be valid, despite the string not being fetched the way I need it to.

Is there another way to load resource strings from files? Is this feature properly supported by the Resource Editor and the API?

Any help would be appreciated. Thanks.

I was able to resolve the issue. Instead of using ISHELL_LoadResString, I used ISHELL_LoadResDataEx, and loaded the text from a file as raw data instead.
Kind of a pain, but at least it works.

I was able to resolve the issue. Instead of using ISHELL_LoadResString, I used ISHELL_LoadResDataEx, and loaded the text from a file as raw data instead.
Kind of a pain, but at least it works.