Hi
Try this... It should work...
Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (ByVal lpString As
String) As Long
/Daniel
At 00:21 2001-12-10 +0000, you wrote:
>howdy all,
>
>I came across the Any data type while playing around with the Win32 api.
>
>I'd like to wrap some of these functions in my own so that they're a
>little easier to use. However, I don't know how to add parameters when the
>corresponding Win32 function takes a param of type "Any". I tried variant
>but this resulted in a type mismatch.
>
>take for example the function lstrlen:
>
>Declare Function lstrlen Lib "kernel32.dll" Alias "lstrlenA" (ByVal
>lpString As Any) As Long
>
>How would I wrap this function in my own vb function?
>
>Thanks in advance,
>
>Tripp