🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement