Thanks to all who replied to my question and saved me a lot of trouble! The sample applications I was studying were 16-bit programs calling "kernel.exe". In 32-bit systems the call is to "kernel32.dll". Anssi Joutsiniemi said: "Also most of short type (SmallInt in MapInfo) variables are replaced with Long (ie. Integer in MI). Also the names of dll functions have an additional 'A' on their name in 32 bit system. So for example the 16 bit declare : '*****************************************************************' Declare Function GetProfileString Lib "Kernel" (lpAppName As String, lpKeyName As String, lpDefault As String, lpReturnedString As String, ByVal nSize As SmallInt) As SmallInt '*****************************************************************' would look something like this on your Windows98: '*****************************************************************' Declare Function GetProfileString Lib "Kernel32" Alias "GetProfileStringA" (lpAppName As String, lpKeyName As String, lpDefault As String, lpReturnedString As String, ByVal nSize As Integer) As Integer '*****************************************************************' Thanks again. Hope everyone enjoys the festive season. Fraser ************************************************* Fraser Gardiner Tel: 020 8451 9603 Mob: 07939 081357 Email: [EMAIL PROTECTED] ************************************************* ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
