Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. ftasr.cpp
  5. Abstract:
  6. Implementation of class CFtasrApp
  7. This is the application class of FTASR
  8. Author:
  9. Cristian Teodorescu 3-March-1999
  10. Notes:
  11. Revision History:
  12. --*/
  13. #include "stdafx.h"
  14. #include "ftasr.h"
  15. #include "ftasrdlg.h"
  16. #ifdef _DEBUG
  17. #define new DEBUG_NEW
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CFtasrApp
  23. BEGIN_MESSAGE_MAP(CFtasrApp, CWinApp)
  24. //{{AFX_MSG_MAP(CFtasrApp)
  25. //}}AFX_MSG
  26. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  27. END_MESSAGE_MAP()
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CFtasrApp construction
  30. CFtasrApp::CFtasrApp()
  31. {
  32. }
  33. /////////////////////////////////////////////////////////////////////////////
  34. // The one and only CFtasrApp object
  35. CFtasrApp theApp;
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CFtasrApp initialization
  38. BOOL CFtasrApp::InitInstance()
  39. {
  40. AfxEnableControlContainer();
  41. // Standard initialization
  42. #ifndef _WIN64
  43. // Sundown: ctl3d was intended for NT3.51
  44. #ifdef _AFXDLL
  45. Enable3dControls(); // Call this when using MFC in a shared DLL
  46. #else
  47. Enable3dControlsStatic(); // Call this when linking to MFC statically
  48. #endif
  49. #endif // !_WIN64
  50. CFtasrDlg dlg;
  51. m_pMainWnd = &dlg;
  52. INT_PTR nResponse = dlg.DoModal();
  53. exit((INT)nResponse) ;
  54. return FALSE;
  55. }