Retrieving a string from a c file

Miscellaneous Forums/Win32 Discussion/Retrieving a string from a c file

I'm trying to Import a C file and read in a string value from inside it using Extern. It works fine with Integer's etc but when I try and use a string I just get an Unhandled Memory Exception Error.

I threw a simple example together to show what I mean:

test.bmx
Import "test.c"

Extern

Global myString$ = "myString"

End Extern

DebugLog myString


test.c
char myString[] = "testing";


Thanks,
Chris