• Advertisement
Sign in to follow this  

How can I register const method of class ?

This topic is 3636 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

class A { float Do( ) const; }; RegisterObjectMethod( "A", "float Do() const", asMETHODPR( A, Do, (void), float ), asCALL_THISCALL ); how to register Do() method ? the compiler always tell me that error C2440: 'type cast' : cannot convert Thanks !

Share this post


Link to post
Share on other sites
Advertisement
Oh, Sorry, it's my mistake ~~ really sorry , I had fixed it .


So shy .... :(

Share this post


Link to post
Share on other sites
RegisterObjectMethod( "A", "float Do() const", asMETHODPR( A, Do, (void) const, float ), asCALL_THISCALL );

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement