[PB5.71b1] Structure Viewers "insert" -> wrong output
Posted: Fri Jun 21, 2019 9:35 am
When using the "insert" feature of the IDEs' Structure Viewer, then "StuctureUnion" and "EndStuctureUnion" gets (kind of...) misinterpreted as a structure field, but gets inserted as a "nameless" field.
Although this is a very clear description (feel the sarcasm
), here is how to reprocude it step by step:
Although this is a very clear description (feel the sarcasm

- in the IDE click "Tools > Structure Viewer"
- in the Structure Viewer double-click "BITMAPINFO"
- now click "insert"
- then click "OK"
- scratch your head while inspecting the inserted code:
Code: Select all
var.BITMAPINFO var\bmiHeader = var\ = var\bmiColors[0] = var\dummybmiColors[0] = var\ =
Code: Select all
Structure BITMAPINFO
bmiHeader.BITMAPINFOHEADER
StructureUnion
bmiColors.RGBQUAD[0]
dummybmiColors.RGBQUAD[1]
EndStructureUnion
EndStructure