genius257 / DllStructEx

Extended DllStruct for AutoIt3
MIT License
2 stars 1 forks source link

Structs in unions fail after fixing issue #7 #14

Closed genius257 closed 3 years ago

genius257 commented 3 years ago

Reported on AuotIt3 forum by UEZ (comment)

Solving issue #7 created an issue with structs in unions.

$tagTestStruct = "INT a;INT b;INT c;INT d;"
$oUnion = DllStructExCreate("union {INT a;INT64 b;TestStruct c;INT d;} union;")
$oUnion.union.c.a

Output:

The requested action with this object has failed.:
$oUnion.union.c.a
$oUnion.union^ ERROR