Can you still call C API from Lotusscript on Macintosh?

Hi, I am trying to add MAC compatibility to some legacy Lotusscript that, by necessity, has to use a Lotusscript to C API call. Googling this subject, I see examples of making such declarations as follows Declare Function mac_OSGetSystemTempDirectory Lib “NotesLib” Alias “OSGetSystemTempDirectory” ( ByVal S As String) As Integer but when I try this in my application, the Notes client on MAC returns an error ‘Unable to load Dll’ My suspicion is that support / distribution of the ‘NotesLib’ library to the MAC OS ended in an earlier release, as I don’t seem to be able to locate it on my MAC, and references to it in the API user guide seem to disappear between 6.5.x and 7.x.x versions. But then a new section regarding ‘Building MAC Applications’ does exist in the more recent 8.5.x and 9.x.x API user guides, so I am hoping there is still a way of calling MAC based C API calls from Lotusscript. Does anyone know how to make this work in 8.5.x and 9.x.x. Has NotesLib been replaced by a different library file in these releases and, if so, how can I make declarations in Lotusscript that can engage the API functions in it? Thanks in advance for any help Paul

Subject: Solution

Figured this one out with the help of Normunds Kalnberzins - LotusScript to Lotus C API Programming Guide, LotusScript to Lotus C API Programming Guide http://www.ls2capi.com/web/ls2capi/ls2capihome.nsf/Content/index and Bill Buchan. Thanks guys, beers on me at IBM Connect next January!

For OSX on Intel, use the ‘libnotes.dylib’ library. e.g.

Declare Function mac_OSGetSystemTempDirectory Lib “libnotes.dylib” Alias “OSGetSystemTempDirectory” ( ByVal S As String) As Integer

1 Like