questions about the testing of the xloper xll

  add-in, c++, xll

code as follows:

'''
int __stdcall xloper_type(const xloper *type){
   if(type->xltype&~(xlbitXLFree|xlbitDLLFree)==xltypeRef)
        return xltypeRef;
}
'''

why to use ~(xlbitXLFree|xlbitDLLFree) when testing pointer type’s xltype?? thanks!

Source: Windows Questions C++

LEAVE A COMMENT