Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

bstr.cpp

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 GunderWulde   Members   

122
Like
0Likes
Like

Posted 19 July 2004 - 07:57 PM

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.

#2 Andreas Jonsson   Moderators   

4629
Like
0Likes
Like

Posted 20 July 2004 - 01:20 AM

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 - Tower - free puzzle game

#3 Andreas Jonsson   Moderators   

4629
Like
0Likes
Like

Posted 21 July 2004 - 01:33 PM

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 - Tower - free puzzle game

#4 GunderWulde   Members   

122
Like
0Likes
Like

Posted 21 July 2004 - 08:37 PM

Thanks




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.