1. OBJPTR, What would you use this for. You can't assign the pointer to an object so what is the intended use?
Sometimes you need to pass a pointer to a class to a function that has the parameter declared as DWORD or LONG, e.g.
Code:
' Set the IRichEditOleCallback object. ' The control calls the AddRef function for the object before returning. LOCAL pRichEditOleCallback AS IRichEditOleCallbackImpl pRichEditOleCallback = CLASS "CRichEditOleCallback" SendMessage hWndChild, %EM_SETOLECALLBACK, 0, OBJPTR(pRichEditOleCallback)
Leave a comment: