Hi!


I have got a problem with structs!

code:
"
#include <acknex.h>
#include <default.c>

typedef struct {
var Active;
var Active2;
var CountVis;
var CountInvis;
int Offset_1;
int Offset_2;
int Offset_3;
int Offset_4;
int Offset_5;
TEXT* Text_1;
TEXT* Text_2;
} LISTBOX;

function main()
{
LISTBOX* test;
test.Active = 1;
}
"

THIS IS WORKING....


code:
"
#include <acknex.h>
#include <default.c>

typedef struct {
var Active;
var Active2;
var CountVis;
var CountInvis;
int Offset_1;
int Offset_2;
int Offset_3;
int Offset_4;
int Offset_5;
TEXT* Text_1;
TEXT* Text_2;
} LISTBOX;

function main()
{
LISTBOX* arb;
arb.Active = 1;
}
"

THIS IS NOT WORKING....
(The application closes imediately after starting...the window hardly appears)

Seems to be a strange problem....

I hope somebody can help.