A ver si me podéis echar una mano, necesito pasar esta función que tengo en una aplicación asp a php:
Código PHP:
Private Declare Sub DxToIEEEd Lib "mbfiee32" (ByRef X As Byte)
Private Function CVDMBF(ByRef bTmp() As Byte) As Double
CVDMBF = 0
DxToIEEEd(bTmp(0))
Dim objDouble As Object = CDbl(0)
Dim MyGC As System.Runtime.InteropServices.GCHandle = System.Runtime.InteropServices.GCHandle.Alloc(objDouble, System.Runtime.InteropServices.GCHandleType.Pinned)
Dim AddofLongValue As IntPtr = MyGC.AddrOfPinnedObject()
System.Runtime.InteropServices.Marshal.Copy(bTmp, 0, AddofLongValue, 8)
MyGC.Free()
CVDMBF = objDouble
End Function CVDMBF
Muchas gracias