PureBasic Forum
https://www.purebasic.fr/english/

[PB5.71b1] Structure Viewers "insert" -> wrong output
https://www.purebasic.fr/english/viewtopic.php?f=4&t=73062
Page 1 of 1

Author:  Regenduft [ Fri Jun 21, 2019 9:35 am ]
Post subject:  [PB5.71b1] Structure Viewers "insert" -> wrong output

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 :wink:), here is how to reprocude it step by step:

  1. in the IDE click "Tools > Structure Viewer"
  2. in the Structure Viewer double-click "BITMAPINFO"
  3. now click "insert"
  4. then click "OK"
  5. scratch your head while inspecting the inserted code:
    Code:
    var.BITMAPINFO
    var\bmiHeader         =
    var\                  =
    var\bmiColors[0]      =
    var\dummybmiColors[0] =
    var\                  =

By the way, the Structure looks like this:
Code:
Structure BITMAPINFO
  bmiHeader.BITMAPINFOHEADER
  StructureUnion
  bmiColors.RGBQUAD[0]
  dummybmiColors.RGBQUAD[1]
  EndStructureUnion
EndStructure

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/