Search:
Type: Posts; User: pascal_33
Search:
Search took 0.02 seconds.
-
January 10th, 2011, 03:31 AM
Thanks. This seem a bit complicated but I'll think about it ;)
-
January 7th, 2011, 04:56 AM
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...
-
January 7th, 2011, 03:16 AM
I'm afraid there is no solution to this problem :(
-
January 6th, 2011, 11:44 AM
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...
-
January 6th, 2011, 11:38 AM
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)
-
January 6th, 2011, 10:45 AM
Ok... i'm preparing to post a sample project with the problem ;)
-
January 6th, 2011, 10:13 AM
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
-
January 6th, 2011, 10:08 AM
@ 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...
-
January 6th, 2011, 09:13 AM
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...
-
January 6th, 2011, 09:09 AM
Below is the rc file :
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS...
-
January 6th, 2011, 08:17 AM
yes
but the same resource apply for all versions beginning from VS 2003 .net (there is other versions links in the page)
-
January 6th, 2011, 05:39 AM
Yes, but following microsoft
http://msdn.microsoft.com/en-us/library/zakskay9.aspx
it should work !
but it does not :(
-
January 6th, 2011, 05:37 AM
it was only an example for the problem explanation ;)
-
January 6th, 2011, 05:35 AM
There is only one dialog2.h file which is normally used as "read-only" file (i follow the microsoft link in my 1st post)
-
January 6th, 2011, 04:31 AM
not only the resource editor, also the resource compiler (see my reply to D_Drmmr)
-
January 6th, 2011, 04:29 AM
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...
-
January 6th, 2011, 04:27 AM
You do not understand me. The problem relates to the compilation of rc file.
-
January 5th, 2011, 11:35 AM
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
-
January 5th, 2011, 05:34 AM
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...
|
Click Here to Expand Forum to Full Width
|