B4X FEED how to store pointer from wrapper in B4R ?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: how to store pointer from wrapper in B4R ? است. این موضوع تا کنون 53 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع how to store pointer from wrapper in B4R ?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
53
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
it is a question without answer for me : how to store a pointer provided by wrapper in B4R ?

what is the need : in several interesting libraries, objects are created and managed by pointer

adaptation of this type of library to B4R is blocked...



in library, if we have also an index by object, we can manage each object in B4R by index and conversion to pointer is done in wrapper.

in others case,
- in wrapper interface, we can convert a pointer to "object" B4R
but an object is stored on the stack and cannot be stored in a global variable (or i didn't find the way to do it).
=> if we have a callback from wrapper with pointer, if wrapper make a conversion to "object" to B4R, i cannot compare it with pointer found in an other sub...

- in wrapper interface, we can convert in a "long" by a "reinterpret_cast<uint32_t>(pointer)
=> in this case i can store pointer in a "long" global variable at creation and i can compare when a callback is coming
this case is...



 

عقب
بالا