B4R Question Callback from C++ to B4R?

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Anyone knows how to make a callback from C++ to B4R?

Suppose you have a library like this:

B4X:
    Library obLibr;

    void B4RMyLib::Initialize()
    {

             obLibr.onState([](unsigned char param1, const char * param2)
             {
                //<====  HOW TO CALL B4R from here????
             });

    }

OBS: in this library is not possible use inline, i'm creating a new library

@Erel?
 

thetahsk

Active Member
Licensed User
Longtime User
Upvote 0
Top