CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: pascal_33

Search: Search took 0.02 seconds.

  1. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    Thanks. This seem a bit complicated but I'll think about it ;)
  2. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    I agree with you. That don't work for loadables resources.
    However, Igor Vartanov test is interesting showing it is possible to order (IDC1= IDC0+1, IDC2=IDC0+2 ...) a serie of controls which may be...
  3. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    I'm afraid there is no solution to this problem :(
  4. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    Here is a sample project
    in the dialog box, you will see only 2 icons

    But if you look at the test1.rc source code, you should expect 3 icons
    Note that the rc editor give an error (on...
  5. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    I agree, I think you're right.
    But what can I do to get my icon ID dependent of buttons ID values (that was my first aim)
  6. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    Ok... i'm preparing to post a sample project with the problem ;)
  7. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    yes, typo error, sorry.
    About read-only , of course it is not related to the file attributes but to the method used to add it from the "resource include" dialog : "Read-only symbol directives" input
  8. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    @ John E and Marc G
    I fully understand that you request a full project. But it is very complicated because my app rely on OWLNET libraries...
  9. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    yes, but there is also


    The environment will correctly interpret these calculated symbols as long as:

    * The calculated symbols are placed in a read-only symbols file.
    * Your...
  10. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    Below is the rc file :

    // Microsoft Visual C++ generated resource script.
    //
    #include "resource.h"

    #define APSTUDIO_READONLY_SYMBOLS...
  11. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    yes

    but the same resource apply for all versions beginning from VS 2003 .net (there is other versions links in the page)
  12. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    Yes, but following microsoft
    http://msdn.microsoft.com/en-us/library/zakskay9.aspx
    it should work !
    but it does not :(
  13. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    it was only an example for the problem explanation ;)
  14. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    There is only one dialog2.h file which is normally used as "read-only" file (i follow the microsoft link in my 1st post)
  15. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    not only the resource editor, also the resource compiler (see my reply to D_Drmmr)
  16. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    I have tried a number of different ways and it just does not work. The problem is that in the .rc file the 'calculated' value is replaced by the preprocessor but the rc compiler does not recalculate...
  17. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    You do not understand me. The problem relates to the compilation of rc file.
  18. Replies
    40
    Views
    22,724

    Re: Resources ID based on other resources ID

    yes, they are.

    And i also test different things as:
    #define IDC_TEST 10
    #define IDI_OK (IDC_TEST+100)
    same problem !

    even
    #define IDI_OK (1+100) don't work
  19. Replies
    40
    Views
    22,724

    Resources ID based on other resources ID

    My problem: I need to give to icons resources identifiers values based on other (buttons) identifiers values.
    example, if i have a button with CM_TEST identifier, i need to have a corresponding icon...
Results 1 to 19 of 19





Click Here to Expand Forum to Full Width

Featured