How can I work with pointers?
Darrell
news at dorb.com
Wed May 9 20:27:43 EDT 2001
I'm trying to work with the Director interface to Scite.
It works with windows messages.
http://www.scintilla.org/SciTEDirector.html
So I have a message handler like so...
def OnDirector(self, hwnd, msg, wparam, lparam):
print 'Director hit', hex(msg), hex(wparam), hex(lparam)
Which produces this:
Director hit 0x4a 0x14024e 0x12fa7c
Scite used this to send that message:
::SendMessage(wDestination, WM_COPYDATA,
reinterpret_cast<WPARAM>(wReceiver),
reinterpret_cast<LPARAM>(&cds));
My problem is how to recover the struct pointer cds.
How do I follow the pointer?
The struct module doesn't seem to provide this.
--Darrell
More information about the Python-list
mailing list