Has your C++ application performed all of the PBNI initialization that appears to be needed in order to be able to access objects and invoke methods in PB through the PB Virtual Machine (PBVM)? I've only dabbled a little in PBNI and I've not attempted anything close to the level of sophistication you are attempting, but a scan of the PBNI documentation indicates that there are several steps your C++ application has to perform in order to be able to interface with PB object classes and methods.
https://docs.appeon.com/pb2019r2/native_interface_programmers_guide_and_reference/ch05s02.html
HTH, John