I have an application that is downloading attachments from an email message and then creating the files as attachments in a separate database. I used the code I’ve seen in numerous places to get the temp directory for downloading to the local machine, and it works fine on Windows. However, when I run it on a Mac, I get the error message: Error in loading DLL (48). The code is:Declarations:
Declare Function w32_OSGetSystemTempDirectory Lib “nnotes” Alias “OSGetSystemTempDirectory” ( ByVal S As String) As Integer
Declare Function mac_OSGetSystemTempDirectory Lib “NotesLib” Alias “OSGetSystemTempDirectory” ( ByVal S As String) As Integer
Declare Function linux_OSGetSystemTempDirectory Lib “libnotes.so” Alias “OSGetSystemTempDirectory” ( ByVal S As String) As Integer
Const ERR_UNSUPPORTED_PLATFORM = 20300
Then, in a sub to get the directory:
Select Case session.Platform
Case "Linux"
s% = linux_OSGetSystemTempDirectory(d)
Case "Macintosh"
s% = mac_OSGetSystemTempDirectory(d)
Case "Windows/32"
s% = w32_OSGetSystemTempDirectory(d)
Case Else
Error ERR_UNSUPPORTED_PLATFORM, "In GetNotesTempDirectory, platform not supported: " & session.Platform
End Select
Any recommendations?