🎉 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!
RegisterObjectType
Whenever I call RegisterObjectType it returns -5. It's independent of passed parameters. When I pass asOBJ_REF - RegisterObjectType("Info", sizeof(Info), asOBJ_REF) - it works, and only then.
I am using samples/tutorial/source/main.cpp (AS 2.13.0) as a framework and RegisterObjectType is called at the end of ConfigureEngine.
What's wrong?
I think it might be because you're not registering the ADDREF & RELEASE callbacks via RegisterObjectBehaviour.
I'm in a bit of a hurry right now, so I'm just going to refer you to the manual:
Registering a C++ class
Registering a C++ class
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement