Mercurial > hg > orthanc
diff Resources/Samples/OrthancCppClientStandalone/Basic/main.cpp @ 588:a0001c222b32
refactoring of samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Oct 2013 15:00:18 +0200 |
parents | 7f9467b5f33b |
children |
line wrap: on
line diff
--- a/Resources/Samples/OrthancCppClientStandalone/Basic/main.cpp Wed Oct 02 14:34:55 2013 +0200 +++ b/Resources/Samples/OrthancCppClientStandalone/Basic/main.cpp Wed Oct 02 15:00:18 2013 +0200 @@ -26,18 +26,15 @@ #include <iostream> - -#include "../../../../OrthancCppClient/Package/AUTOGENERATED/OrthancClient.h" +#include <orthanc/OrthancCppClient.h> int main() { try { -#ifdef _WIN32 - OrthancClient::Initialize("libOrthancCppClient.dll"); -#else - OrthancClient::Initialize("libOrthancCppClient.so"); -#endif + // The following explicit initialization is not required, except + // if you wish to specify the full path to the shared library + OrthancClient::Initialize(); // Display the content of the local Orthanc instance OrthancClient::OrthancConnection orthanc("http://localhost:8042"); @@ -65,6 +62,8 @@ } } + OrthancClient::Finalize(); + return 0; } catch (OrthancClient::OrthancClientException e)