<commit_before>// PasswordSafe.h
// main header file for the PasswordSafe application
//-----------------------------------------------------------------------------

#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"  // main symbols
#include "Util.h"      // for StuffSize
#include "DboxMain.h"

//-----------------------------------------------------------------------------
class CPasswordSafeApp
   : public CWinApp
{
public:
   CPasswordSafeApp();
   ~CPasswordSafeApp();
   
   CMyString m_passkey; // the main one, in memory?!? yikes {jpr}
   CMyString m_curdir; /* only used once, in DboxMain constructor,
                          to make m_deffile */

   unsigned char m_randstuff[StuffSize];
   unsigned char m_randhash[SaltSize];

   DboxMain* m_maindlg;

   HACCEL m_ghAccelTable;

public:
   virtual BOOL InitInstance();
   virtual BOOL ProcessMessageFilter(int code, LPMSG lpMsg);

   afx_msg void OnHelp();

   DECLARE_MESSAGE_MAP()
};

//-----------------------------------------------------------------------------

/*
  a globally available reference to the app object, which is a whole lot
  cleaner (in my mind) than constantly calling AfxGetApp() for the same
  thing... {jpr}
*/

extern CPasswordSafeApp app;

//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End:<commit_msg>Made this a global header file, separate from ThisMfcApp object.  This will make other frontends possible.<commit_after>// PasswordSafe.h
// main header file for the PasswordSafe application
//-----------------------------------------------------------------------------

#define PWS_MFC 1

#if defined(PWS_MFC)
#include "stdafx.h"
#endif

/*
  jpr debug stuff
*/
#include "jprdebug.h"


/*
  eventually, this breaks off into pws_mfc.h
*/

/*
  a globally available reference to the app object, which is a whole lot
  cleaner (in my mind) than constantly calling AfxGetApp() for the same
  thing... {jpr}
*/

class ThisMfcApp;
extern ThisMfcApp app;

//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End:
{'fraction_non_alphanumeric': 0.2916287534121929, 'fraction_numerical': 0.00045495905368516835, 'mean_word_length': 1.5451388888888888, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2794336', 'n_tokens_mistral': 601, 'n_tokens_neox': 578, 'n_words': 194}