home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBPass / HTBPass.cpp next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  1.8 KB  |  82 lines

  1. /*************************************************
  2. HTBPass.dll
  3.  
  4. HtbPass.cpp
  5.  
  6. Copyright TransEra Corporation 1999
  7. *************************************************/
  8. #include "stdafx.h"
  9. #include "HTBPass.h"
  10. #include "PasswordRun.h"
  11. #include "RegularRun.h"
  12.  
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18.  
  19. BEGIN_MESSAGE_MAP(CHTBPassApp, CWinApp)
  20.     //{{AFX_MSG_MAP(CHTBPassApp)
  21.         // NOTE - the ClassWizard will add and remove mapping macros here.
  22.         //    DO NOT EDIT what you see in these blocks of generated code!
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26. CHTBPassApp::CHTBPassApp() 
  27. {
  28. }
  29.  
  30. CHTBPassApp theApp;
  31.  
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. /*
  35.     Function:        Password
  36.  
  37.     Description:    creates a password dialog box
  38.  
  39.     Return type:    void 
  40.     Argument:        char * UserName
  41.     Argument:        char * Password
  42.  
  43.     Notes:            asks for user name and password, password will
  44.                     be hidden behind asterisks.  This function returns
  45.                     two char * strings to basic containng the USERNAME
  46.                     and PASSWWORD.
  47.         
  48. */
  49. void Password(char * UserName, char * Password) 
  50. {
  51.     PasswordRun Dlg;
  52.     Dlg.DoModal();
  53.     strcpy(UserName, Dlg.m_UserName);
  54.     strcpy(Password, Dlg.m_Password);
  55.  
  56. }
  57.  
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60. /*
  61.     Function:        Dbox
  62.  
  63.     Description:    creates password dialog box
  64.  
  65.     Return type:    void 
  66.     Argument:        char * UserName
  67.     Argument:        char * Password
  68.  
  69.     Notes:            asks for username and password without hiding the
  70.                     password behind asterisks.  This function returns
  71.                     two char * strings to basic containng the USERNAME
  72.                     and PASSWWORD.
  73.         
  74. */
  75. void Dbox(char * UserName, char * Password) 
  76. {
  77.     RegularRun Dlg;
  78.     Dlg.DoModal();
  79.     strcpy(UserName, Dlg.m_rUserName);
  80.     strcpy(Password, Dlg.m_rPassword);
  81. }
  82.