SetServerCertificateTLS example for C++ 6.0 and later

{
   _bstr_t sPathToCertificateFile("c:\\cert\\Server.pem");
   _bstr_t sPathToKeyFile("");
   if(m_pLEADDicomNet->SetServerCertificateTLS (m_pLEADDicomNet->GethNet (), sPathToCertificateFile, L_TLS_FILETYPE_PEM, sPathToKeyFile) == DICOM_SUCCESS)
      AfxMessageBox("Loading Server certificate succeeded");
   else
      AfxMessageBox("Loading Server certificate failed");
}