[Mono-dev] GetAddrOf mono-basic vb.net

Kornél Pál kornelpal at gmail.com
Fri May 4 13:49:51 EDT 2007


>It is in VB6.
>Public Declare Function GetAddrOf Lib "kernel32" Alias "MulDiv" (nNumber As 
>Any, Optional ByVal nNumerator As Long = 1, Optional ByVal nDenominator As 
>Long = 1) As Long

I don't know the exact reason mentioning this, but this solution should be 

I suggest to use GCHandle.AddrOfPinnedObject that ensures that the pointer 
is pinned and is platform independent as well.


More information about the Mono-devel-list mailing list