🎉 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

Started by
1 comment, last by WitchLord 19 years ago
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
Advertisement
I have found my mistake:
I use - double gValue;
[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