SHP2VCT.cpp
上传用户:bjslfz
上传日期:2022-07-25
资源大小:4430k
文件大小:2k
源码类别:

文件操作

开发平台:

C/C++

  1. // SHP2VCT.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "SHP2VCT.h"
  5. #include "SHP2VCTDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CSHP2VCTApp
  13. BEGIN_MESSAGE_MAP(CSHP2VCTApp, CWinApp)
  14. //{{AFX_MSG_MAP(CSHP2VCTApp)
  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. // CSHP2VCTApp construction
  22. CSHP2VCTApp::CSHP2VCTApp()
  23. {
  24. // TODO: add construction code here,
  25. // Place all significant initialization in InitInstance
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // The one and only CSHP2VCTApp object
  29. CSHP2VCTApp theApp;
  30. CString csSourseFileName; //保存源文件的文件名
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CSHP2VCTApp initialization
  33. BOOL CSHP2VCTApp::InitInstance()
  34. {
  35. AfxEnableControlContainer();
  36. // Standard initialization
  37. // If you are not using these features and wish to reduce the size
  38. //  of your final executable, you should remove from the following
  39. //  the specific initialization routines you do not need.
  40. #ifdef _AFXDLL
  41. Enable3dControls(); // Call this when using MFC in a shared DLL
  42. #else
  43. Enable3dControlsStatic(); // Call this when linking to MFC statically
  44. #endif
  45. CSHP2VCTDlg dlg;
  46. m_pMainWnd = &dlg;
  47. int nResponse = dlg.DoModal();
  48. if (nResponse == IDOK)
  49. {
  50. // TODO: Place code here to handle when the dialog is
  51. //  dismissed with OK
  52. }
  53. else if (nResponse == IDCANCEL)
  54. {
  55. // TODO: Place code here to handle when the dialog is
  56. //  dismissed with Cancel
  57. }
  58. // Since the dialog has been closed, return FALSE so that we exit the
  59. //  application, rather than start the application's message pump.
  60. return FALSE;
  61. }