Advertisement

Problem about Accessing variables in the host application

Started by June 14, 2005 11:20 AM
1 comment, last by WitchLord 19 years, 5 months 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
I have found my mistake:
I use - double gValue;
Advertisement
[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