Retrieving a string from a c file

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

Thanks Perturbatio, not working 100% yet though. If I modify the code to this:

Import "test.cpp"

Extern

Global myString:Byte Ptr = "myString"

End Extern

DebugLog String.FromCString( myString )

Then it works fine, but I'd rather it held the correct value automatically so I don't have to call FromCString( ) every time, or even once to update the value.

I can't appear to use the FromCString( ) method inside the Extern block so I'm not sure if this is possible or not.

Regards,
Chris