QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: blametroi on December 28, 2018, 10:23:50 am
-
More early steps with syntax. In my earlier question one structure I defined from the Windows API included the FileTime. Microsoft defines it as a pair of DWORDs and provides a conversion API call to turn it into something readable. As I was experimenting I tried to declare an array of unsigned bytes inside my structure and couldn't find a valid syntax.
The line is flagged as an error with "expected variable name as type or end type".
One way I came up with to get byte level access was to define a fixed length string and use mid$ to pluck out bytes, but is there a better or more idiomatic way to do this?
Thanks.
-
Even after intense lobbing the answer is 'NO', and probably not ever. :(
but there is variable length strings available now in UDTs, which with a bit of work can be used as arrays.
-
As long as I can accomplish what I need to, I'm OK with using strings, I just want to make sure I'm not missing something obvious.
I also need to investigate _OFFSET at some point ...