Skip to main content
GameDev.net gamedev.net
🔒 Locked

bstr.cpp

Started by GunderWulde Jul 20, 2004 at 1:57 AM 2 replies 1.5k views
Original Post
GunderWulde
GunderWulde
I found a bug on bstr.cpp engine->RegisterObjectType("bstr", 4, asCALL_RETURNBYVAL); Register object has a invalid flag asCALL_RETURNBYVAL, only 0, asOBJ_IS_COMPLEX, asOBJ_IS_NOT_COMPLEX are valid im using for the moment asOBJ_IS_COMPLEX. Please check its correct. Thanks Gunder.
WitchLord
WitchLord
That's true. I forgot to update the bstr code. Thanks for letting me know.

Actually, the correct flag would be asOBJ_IS_NOT_COMPLEX, this is because C++ treats it just as a normal char* which isn't a complex type, i.e it doesn't have a constructor, destructor, or assignment operator.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
WitchLord
WitchLord
I've updated the bstr.zip now.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.