stTest struc
aa dd ?
bb dd ?
stTest ends


testProc uses edi proc lpstTest:DWORD
assume edi: ptr stTest
.if [edi].aa>5
.........can work
.endif


..........but
.if (stTest ptr [edi]).aa > 5
.............cannn't work why????
.endif


assume edi:NOTHING
ret
testProc endp

Posted on 2005-02-07 09:29:37 by jndk
Hi

Good question, but only microsoft can give the answer. I consider it a bug.

I use this form:


.if [edi].stTest.aa>5
.endif

It always works.

KetilO
Posted on 2005-02-07 12:40:02 by KetilO
thanks a lot :idea:
Posted on 2005-02-07 21:37:39 by jndk
so may i think there is no need the method stTest ptr any more

only .stTest.aa is ok

:lol:
Posted on 2005-02-08 06:31:48 by jndk