It is currently Fri Dec 06, 2019 4:18 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [PB5.71b1] Structure Viewers "insert" -> wrong output
PostPosted: Fri Jun 21, 2019 9:35 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Mar 02, 2009 9:20 pm
Posts: 110
Location: Germany
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye