mb_protect

Previous  Next

 

status_t mb_protect( const char* lpszPassword, bool_t bPwdEncoded, int nDuration, bool_t bMinutes )

 


 

Creates a  MyBASIC2.PRO Protection File.  The protection file will allow the debugger to list source code in password protected compiled MyBASIC2 files.  If the lpszPassword is set to NULL and all others to 0 then the current protection file is deleted.

 

Example

 

// Remove current file first

if ( mb_protect( NULL, FALSE, 0, FALSE ) != MB_FUNC_OK )

  {

  AfxMessageBox( "Error Deleting MyBASIC.PRO File" );

 

  return;

  }

endif

 

int nResult = mb_protect( m_strPassword, FALSE, m_nDuration, m_bMinutes );