hi all, how to use C API in client??
Subject: how to use C API in client??
I’m not sure what you are asking. Do you want to use the C API from LotusScript, or do you want to know what else you have to install to use a program that uses the C API? Can you explain a bit more?
Subject: how to use C API in client??
First you declare the functions you want to use in a lotusscript (or agent). Like:
Declare Function NSFDbClose Lib “nnotes.dll” (Byval hDb As Long) As Integer
Declare Function NSFDbOpen Lib “nnotes.dll” (Byval dbName As String, hDb As Long) As Integer
Declare Function OSPathNetConstruct Lib “nnotes.dll” (Byval NullPort As Long, Byval Server As String, Byval FIle As String, Byval PathNet As String) As Integer
Then you invoke them like:
Dim dp as String
Dim s As Integer
Dim hDB As Long
dp = String(1024, " ")
OSPathNetConstruct 0, dbserver, dbfilepath, dp
s = NSFDbOpen(dp, hDB)
If hDB = 0 Then Exit Sub
-do something usefull-
NSFDbClose hDB