In MapBasic I declare the following external function : Declare Function getnodevalue Lib "SomeoneDll.dll" (ByVal Index As Integer, ByVal Code As Integer, Value As Float) As Integer and define the following constant Define EN_PRESSURE 7 when I call the Function with myopen = getnodevalue( nodeindex, EN_PRESSURE, pressure) It returns wrong values. The same code works perfectly in Visual Basic except the dll is declared: Declare Function getnodevalue Lib "SomeoneDll.dll" (ByVal Index As Integer, ByVal Code As Integer, Value As Single) As Integer I suppose that the problem comes from the fact that in MapBasic the type "float" is coded with 8 Bytes while a type "Single" is coded in 4 Bytes. I do not know how to change the type of the variable Value in Mapinfo to pass a 4Bytes coded float. Any body knows? Please reply directly... Franck Martin Network and Database Development Officer SOPAC South Pacific Applied Geoscience Commission Fiji E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Web site: www.sopac.org.fj <http://www.sopac.org.fj> ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
