home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 1997 / CT_SW_97.ISO / mac / Software / finanzen / win95 / quotenow.exe / data.z / PassDlg.cpp < prev    next >
C/C++ Source or Header  |  1996-12-03  |  3KB  |  98 lines

  1. // PassDlg.cpp : implementation file
  2. //
  3.  
  4. /*
  5. QuotesNow! is trademark and (C)opyright 1996
  6. by Federated Telecommunications Corp. and
  7. Windows Xpert Systems 
  8.  
  9. You or any entity using this code must purchase a copy of QuotesNow!
  10. (tm) for each person that will use this source code.  The purchaser/
  11. registered user may freely distribute compiled derivative
  12. (machine readable code only) versions of this code.
  13.  
  14. Registered Users (Users who have purchased the QuotesNow! (tm) program
  15. from Federated Telecommunications Corp. or Windows Xpert Systems)
  16. Once you have purchased the application, you may use one copy
  17. of the program.  The program is licensed to YOU (the purchaser/user
  18. by name), no other user may legally use the software.
  19. It is understood that you use the software at your own risk.
  20.  Registered Users may produce compiled derivative works of the
  21.  source code provided with this program as long as it's intended use
  22.  is only for use with the QuotesNow! (tm) program by Windows Xpert Systems
  23.  and Federated Telecommunications Corp.  The derivative source code
  24.  may be distributed as long as all notices in all code, including
  25.  copyright and trademark notices remain intact and the author makes it
  26.  clear that the source code may only be used to work with the
  27.  QuotesNow! (tm) program by Windows Xpert Systems and 
  28.  Federated Telecommunications, and that any user of the source code must
  29.  purchase the QuotesNow! (tm) program to use it.  The header files
  30.  (files ending in .h, such as server.h) may not be distributed
  31.  seperately from the QuotesNow! (tm) program.
  32.  The add-in .SRV/.DLL source code itself may only be distributed
  33.  as a derivative work as mentioned above 
  34.  (with all notices intact and the author notifying any potential
  35.  user of the required uses of the source code - only a Registered
  36.  QuotesNow! (tm) user may distribute/use the Source code derivative
  37.  work.)
  38.  
  39.   */
  40.  
  41.  
  42. #include "stdafx.h"
  43. #include "stdafx.h"
  44. #include "resource.h"
  45. #include "PassDlg.h"
  46.  
  47. #ifdef _DEBUG
  48. #define new DEBUG_NEW
  49. #undef THIS_FILE
  50. static char THIS_FILE[] = __FILE__;
  51. #endif
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CPasswordDlg dialog
  55.  
  56.  
  57. CPasswordDlg::CPasswordDlg(CWnd* pParent /*=NULL*/)
  58.     : CDialog(CPasswordDlg::IDD, pParent)
  59. {
  60.     //{{AFX_DATA_INIT(CPasswordDlg)
  61.     m_sPass = _T("");
  62.     m_sPass2 = _T("");
  63.     m_sUser = _T("");
  64.     //}}AFX_DATA_INIT
  65. }
  66.  
  67.  
  68. void CPasswordDlg::DoDataExchange(CDataExchange* pDX)
  69. {
  70.     CDialog::DoDataExchange(pDX);
  71.     //{{AFX_DATA_MAP(CPasswordDlg)
  72.     DDX_Text(pDX, IDC_EPASS, m_sPass);
  73.     DDX_Text(pDX, IDC_EPASSRETYPE, m_sPass2);
  74.     DDX_Text(pDX, IDC_EUSER, m_sUser);
  75.     //}}AFX_DATA_MAP
  76.     if (pDX->m_bSaveAndValidate)
  77.     {
  78.         if(0!=m_sPass.Compare(m_sPass2))
  79.         {
  80.             //error
  81.             AfxMessageBox(IDS_SPASSFAIL,MB_OK);
  82.             pDX->PrepareEditCtrl(IDC_EPASS);
  83.             pDX->Fail();
  84.         }
  85.  
  86.     }
  87. }
  88.  
  89.  
  90. BEGIN_MESSAGE_MAP(CPasswordDlg, CDialog)
  91.     //{{AFX_MSG_MAP(CPasswordDlg)
  92.         // NOTE: the ClassWizard will add message map macros here
  93.     //}}AFX_MSG_MAP
  94. END_MESSAGE_MAP()
  95.  
  96. /////////////////////////////////////////////////////////////////////////////
  97. // CPasswordDlg message handlers
  98.