I *know* the answer to this; I just learned it a few days ago and now I can't remember.
When I call an API function that uses a pointer to a variable, I'm supposed to buffer the variable before it gets there. I can't remember the function to set the length of the variable!
e.g.
Will someone remind me?Code:Dim sClsNm As String 'something goes here like setlen(sClsNm, 25) Call GetClassName(hWnd, sClsNm, 25) debug.print(sClsNm)
Thanks,
--Josh


Reply With Quote
