GenCode.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // GenCode.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "GenCode.h"
  5. #include "GenCodeDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CGenCodeApp
  13. BEGIN_MESSAGE_MAP(CGenCodeApp, CWinApp)
  14. //{{AFX_MSG_MAP(CGenCodeApp)
  15. // NOTE - the ClassWizard will add and remove mapping macros here.
  16. // DO NOT EDIT what you see in these blocks of generated code!
  17. //}}AFX_MSG
  18. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CGenCodeApp construction
  22. CGenCodeApp::CGenCodeApp()
  23. {
  24. // TODO: add construction code here,
  25. // Place all significant initialization in InitInstance
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // The one and only CGenCodeApp object
  29. CGenCodeApp theApp;
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CGenCodeApp initialization
  32. BOOL CGenCodeApp::InitInstance()
  33. {
  34. // Standard initialization
  35. // If you are not using these features and wish to reduce the size
  36. // of your final executable, you should remove from the following
  37. // the specific initialization routines you do not need.
  38. CGenCodeDlg dlg;
  39. m_pMainWnd = &dlg;
  40. int nResponse = dlg.DoModal();
  41. if (nResponse == IDOK)
  42. {
  43. // TODO: Place code here to handle when the dialog is
  44. // dismissed with OK
  45. }
  46. else if (nResponse == IDCANCEL)
  47. {
  48. // TODO: Place code here to handle when the dialog is
  49. // dismissed with Cancel
  50. }
  51. // Since the dialog has been closed, return FALSE so that we exit the
  52. // application, rather than start the application's message pump.
  53. return FALSE;
  54. }