Advertisement

How can I register const method of class ?

Started by March 05, 2008 02:43 AM
2 comments, last by zopenge 16 years, 8 months ago
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 !
Oh, Sorry, it's my mistake ~~ really sorry , I had fixed it .


So shy .... :(

Advertisement
RegisterObjectMethod( "A", "float Do() const", asMETHODPR( A, Do, (void) const, float ), asCALL_THISCALL );
any way , thanks

This topic is closed to new replies.

Advertisement