Getting at Description Resource strings?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 09/07/2007 at 12:53, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R8.2-R10 
    Platform:   Windows  ; Mac  ;  Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Ok, I know that we can get strings from the plugin's global resource (c4d_strings.str), but how does one get them from a description resource str file? Must I load the resource (GeResource) and go from there? Doesn't look promising though.

    The problem is that I have many plugins with description resource string files (nine of them). IDs between them might be equivalent - which makes the IDs nonunique even though they are per plugin object.

    Thank you very much,



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/07/2007 at 08:30, xxxxxxxx wrote:

    Hmm, can you tell what you actually would like to do with them? These multiused IDs are they also used visually the same. So are these IDs always used for example for a group that controls the amount of time? Then you could make them in a seperate file and simply include the container name into your layouts, just like you do with "INCLUDE Mbase;".

    Otherwise it seems very unintuitive when several elements use the same IDs, even when they are used in several of your plugins in your suite.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/07/2007 at 12:10, xxxxxxxx wrote:

    What I have is a set of resource descriptions that are either added statically or dynamically (as bad as that might seem, they work - this is just reuse in the second case and these are just groups - wherein no elements added to the group causes it to not show). When added statically, their res/description/x.str strings are added to the description automatically.

    But when added dynamically, the string must be added manually in GetDDescriptions(). GeLoadString() doesn't work as it only references the global resource (c4d_strings.str). This is where the IDs may overlap. I have no idea how to get to the description resource strings in res/description/x.str. That's my main question - how does one load strings from a description resource str file? Doesn't seem to be a means from the SDK.

    Thanks!



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/07/2007 at 12:22, xxxxxxxx wrote:

    There is no direct call in the API to do it but you can get the string from the description. I've used this method myself but I cached the string data as descriptions are a little painful to load.


Log in to reply