Code:
CALL DWORD @ptocd.m_lpfnMenu USING InsertMenusCallback(pUnk, hmenuShared, %NULL, %NULL, %NULL, %TRUE, lParam)
But it requires a declaration which I don't like doing. Object variables are also not allowed in this code.
Thanks for the info on PowerBASIC's AddRef and Release calls. I was only seeing the release, that is why I thought it violated the rules.
It will come in handy when dealing with events from an OCX and inserting a reference to the object in the events.
Leave a comment: