API Call

  • Thread starter Thread starter Xavier Valdés
  • Start date Start date
X

Xavier Valdés

Hi all,

I'm trying to call DRV_GetAdress API function from adsapi32.dll with VB.NET.
The problem is that this function has an "Any" type in one of its arguments
and this type
is not supported from .net.
How could I call the function?
Thanks a lot,
Xavi
 
Hi all,

I'm trying to call DRV_GetAdress API function from adsapi32.dll with VB.NET.
The problem is that this function has an "Any" type in one of its arguments
and this type
is not supported from .net.
How could I call the function?
Thanks a lot,
Xavi

I haven't looked at this particular API call, but the normal way to
handle this is to overload the call with the types you are expecting...

In other words:

Declare function thefunction lib "thelib" (s as string) as boolean
declare function thefunction lib "thelib" (i as integer) as boolean
.....


If you need help with this particular function, then please post the
actual prototype - since I can't seem to find it on MSDN...
 
Back
Top