blah wtf, ok ive got it almost working, now its giving me the first 3 chars, and the rest garbage, iunno wtf.
edit:
my code looks pretty much like that, (except for the pointers), if only it were that easy in vb. In my subclassed WindowProc event, it checks for WM_COPYDATA, and does teh following
Code:
Call CopyMemory(cdsData, ByVal lParam, Len(cdsData))
MsgBox cdsData.dwData & " pointer: " & cdsData.lpData
ReDim tmpBuff(cdsData.dwData)
Call CopyMemory(tmpBuff(0), ByVal cdsData.lpData, cdsData.dwData)
but tmpbuff has the first 3 chars now, but the rest is garbage.
Bookmarks