Re: [Haskell-cafe] How do I marshall a pointer over SendMessage LPARAM or WPARAM?

2012-07-22 Thread Simon Peter Nicholls
Sorry Yuras, I missed this. It turns out that I made a mistake when trying to pinpoint my problem. I had started out using WM_COPY_DATA and COPYDATASTRUCT, but upon facing issues, tried simple sending of a C string and a WM_APP message. However, that simplifying resulted in me losing the memory

Re: [Haskell-cafe] How do I marshall a pointer over SendMessage LPARAM or WPARAM?

2012-07-18 Thread Yuras Shumovich
On Wed, 2012-07-18 at 18:22 +0200, Simon Peter Nicholls wrote: Some sending code: Foreign.C.String.withCWString frustrator $ \s - do let wParam = System.Win32.Types.castPtrToUINT s :: System.Win32.Types.WPARAM Graphics.Win32.sendMessage wnd