Lotus Notes / Domino Sonstiges > Tools & Downloads

C++ Beispiel für Schreiben, Lesen, etc..

<< < (5/6) > >>

eknori:
OK; dann haben wir das ja jetzt sowohl in C als auch in C++ API  :D

MisterDa:
Jup.  ;D
Fällt dir zu dem Replikationsproblem was ein? Ich hab schon alles mögliche ausprobiert, tut sich aber nix..
Selbst wenn ich das

"options.SetFileType(LNREPLICATIONFILETYPE_SPECIFIC);"

weglasse, werden alle Datenbanken repliziert, ausser der die mit dem C++ Programm bearbeitet wird und repliziert werden soll...

MisterDa:
Hi!  :)

Hat zu dem Replizier-Thema noch jemand ne Idee? Ich komm da nichtmehr weiter.. :(
Er will die DB einfach nicht replizieren.. ???

Danke schonmal im Voraus
MisterDa

eknori:
kannst bitte mal deinen Code posten...

MisterDa:
der stand weiter oben schonmal, aber hier isser nochmals:

void CDongleDBView::OnButtonreplication()
{
   LNSetThrowAllErrors(TRUE);

   try
   {
      LNReplicationOptions options;
      LNReplicationStatistics statistics;
      LNText fileList;

      fileList.Append("verz1/verz2/Datenbank.nsf");

      options.SetDirection(LNREPLICATIONDIRECTION_BOTH);
      options.SetCloseSession(TRUE);
      options.SetFileList(fileList);
      options.SetFileType(LNREPLICATIONFILETYPE_SPECIFIC);
      
      m_NotesSession.Replicate("Serverpfad", options, &statistics);

   }
   
   catch(LNSTATUS error)
    {
       char errorBuf[LNERROR_MESSAGE_LENGTH];
       LNGetErrorMessage(error, errorBuf);
       SetDlgItemText(IDC_ERRORMESSAGE, errorBuf);
    }
}

Die Variable m_NotesSession wird beim Initialisieren des Dialogfensters angelegt und gefüllt..

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln