It seems that placing a UDT within a UNION isn't legal, as I'm
getting error 476, "Block/scanned statement not allowed here"
when I compile. For example:
I need (rather, the DLL needs) to have the TYPE blocks as a
whole overlap, not the individual elements. One solution would be
to track the current Angle mode, updating the TYPEs as need be
and then pass a pointer to that TYPE block to a function that
expects the UNION parameter.
Anyone have a better way I could get around this problem?
Thanks!
------------------
Mark Newman
getting error 476, "Block/scanned statement not allowed here"
when I compile. For example:
Code:
UNION Angles TYPE DEGREES lDegrees AS LONG sDescription AS ASCIIZ lExtraStuff AS LONG END TYPE TYPE RADIANS lRads AS LONG sDescription AS ASCIIZ lExtraStuff AS LONG lMoreStuff AS LONG END TYPE TYPE GRADS lGrads AS LONG sDescription AS ASCIIZ lExtraStuff AS LONG lOtherStuff AS SINGLE END TYPE END UNION
whole overlap, not the individual elements. One solution would be
to track the current Angle mode, updating the TYPEs as need be
and then pass a pointer to that TYPE block to a function that
expects the UNION parameter.
Anyone have a better way I could get around this problem?
Thanks!
------------------
Mark Newman
Comment