SetClientCertificateTLS Example for C++ 6.0 and later

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