Problem about Accessing variables in the host application
I write these c++ code:
float gValue;
...
engine->RegisterGlobalProperty("float gValue", &gValue);
...
engine->ExecuteString(0, "gValue=2;", &out);
cout<<gValue;
...
I found output is not "2" but a invalid float
[wink]
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement