Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
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

registering methods that take std::string with Angelscript

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
No replies to this topic

#1 sorressean   Members   

103
Like
0Likes
Like

Posted 16 August 2014 - 08:51 PM

Hello all:

I'm sorry for the bad formatting of this post. I am using a screen reader and this editor is really unaccessible/hard to use. I have the stdstring addon enabled and installed, and am trying to register a binding for the following method:

void BaseObject::SetName(const std::string& name)

here is how I am doing it, which is failing with a error of -10. Any ideas would be awesome.

    r=engine->RegisterObjectMethod("BaseObject", "void SetName(string& name)", asMETHOD(BaseObject, SetName), asCALL_THISCALL);
    assert(r >= 0);
I have tried a few variations of this and it is still failing. Any ideas would really be appreciated.

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.