hi all,

hope an easy question:

my compiler (TASM) don't let me use same names of variables inside different structures.

Is ther some option to use to allow same symbols name ?

thanks again
Posted on 2001-07-19 08:19:29 by Bit7
Afternoon, Angelo.

Q: What are the names of the variables you are using?

You can't use certain names: i.e.
Type (use dwType, _Type etc),
Width (use dwWidth, _Width etc)

Posted on 2001-07-20 02:41:11 by Scronty

thanks for your help. This is my problem, in detail:

in an external myinclude.inc file i have these two structures:

structure1 STRUC
hIcon dd ?
X dd ?
Y dd ?
structure1 ENDS

structure2 STRUC
hIcon dd ?
A dd ?
B dd ?
structure2 ENDS

ok, when i compile i got a tasm error that say:
hIcon, symbol already used elsewhere

thats meen that i can't use the same symbol name in both structure.

But all the source example for masm i download can use the same variable name !
So, the question is ' is there any option fo tasm to allow this ?'
Actually i'm changing all the name that are duplicate, but this is not a professional way to solve the problem.

thanks again
Posted on 2001-07-20 06:28:56 by Bit7
Afternoon, Angelo.

There is a little bit of info HERE which states:
Ideal mode permits member names to be duplicated in
different structures.

So the next Q: is: Have you set your proggy to TASM Ideal Mode?:confused:

Posted on 2001-07-20 09:09:31 by Scronty
hi Scronty,

thanks for the useful link !

Anyway i hope that IDEAL mode is not the only solution :( this becouse all my code is written in what Borland call masm mode

thanks in any case
Posted on 2001-07-20 11:22:19 by Bit7
Have you tried


at the begining of your code?
Posted on 2001-07-21 01:12:11 by BogdanOntanu