Hi all,
I have no experience in LS to NotesAPI programming, but have located some documentation to assist.
But in order to use the documentation, I need to understand how to Declare and Call in the code.
I am trying to create a Replica on a server so it appears in the Replication Page.
But the following compile error occurs -
Illegal Function Return Type for : REPLICATEWITHSERVER
Declarations
'STATUS LNPUBLIC ReplicateWithServer(char far *PortName,char far *ServerName,WORD Options,WORD NumFiles,const char far *FileList,REPLSERVSTATS far *retStats);
Declare Function ReplicateWithServer Lib “nnotes.dll” (Byval PortName As String, Byval ServerName As String, Byval Options As Integer, Byval NumFiles As Integer, Byval FileList As String, retStats As String)
LotusScript code**
Sub Initialize
Dim Result As Long
Dim PortName As String
Dim ServerName As String
Dim Options As Integer
Dim NumFiles As Integer
Dim FileList As String
Dim retStats As String
Dim session As New NotesSession
PortName = "0"
ServerName = "CN=bacon/OU=servers/O=glen"
Options = "0"
FileList = "names.nsf"
result = ReplicateWithServer( PortName,ServerName, Options,1,FileList, retStats)
End Sub
Any help to get me started would be appreciated. I am looking to get a book, but I need to complete this code asap for a rollout.