Export Story board I/O Event header generates invalid struct

Questions and information about Crank Software's Storyboard Designer

Moderator: jamiev

Export Story board I/O Event header generates invalid struct

Postby howard » Wed Apr 17, 2019 11:05 am

I'm using v5.3 and generating event header file for my application. When using a variable text field the structure is generated incorrectly.
As follows:
Code: Select all
#define STRING_EVENT "string"
#define STRING_FMT "1s0 text"
typedef struct {
    char *text;
} string_event_t;

This does not work as the structure should be flat. The text field should be:
Code: Select all
    char text[];

At the moment I am modifying the file manually.
Can you tell me If I'm doing anything wrong?

Thanks.
howard
 
Posts: 1
Joined: Thu Apr 11, 2019 4:03 am

Re: Export Story board I/O Event header generates invalid st

Postby MikeMarchand » Thu Apr 18, 2019 2:02 pm

Hi Howard,

You are correct. This issue is resolved in the upcoming Storyboard 6.0.

The only difference between your solution and ours is that we are using.

Code: Select all
char text[1];


Cheers,
Mike
MikeMarchand
 
Posts: 34
Joined: Wed Jan 21, 2015 3:33 pm


Return to Storyboard Designer

Who is online

Users browsing this forum: No registered users and 2 guests

cron