You assign a long integer to a pointer (objHandle is a pointer to a long one). Just like the compiler says.
This is valid c, but this is usually a pretty dumb thing, since long integers are long integers, not pointers.
Not seeing what โsome kind of long valueโ really means, and how this descriptor is used, itโs a little difficult to indicate whether the value should be distinguished by accepting its address, changing the type of the descriptor, or something else.
source share