• 大小: 2.27MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-08
  • 语言: C/C++
  • 标签:

资源简介

MFC根据广播星历计算GPS卫星位置,利用C++编程,编写的MFC程序,源代码均已列出。

资源截图

代码片段和文件信息

// GPSSatellitePosition.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “GPSSatellitePosition.h“
#include “GPSSatellitePositionDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CGPSSatellitePositionApp

BEGIN_MESSAGE_MAP(CGPSSatellitePositionApp CWinApp)
//{{AFX_MSG_MAP(CGPSSatellitePositionApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGPSSatellitePositionApp construction

CGPSSatellitePositionApp::CGPSSatellitePositionApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CGPSSatellitePositionApp object

CGPSSatellitePositionApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CGPSSatellitePositionApp initialization

BOOL CGPSSatellitePositionApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CGPSSatellitePositionDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-05-05 11:33  2010302590097彭波GPS\
     目录           0  2012-05-05 11:33  2010302590097彭波GPS\Debug\
     文件      127093  2012-05-05 11:23  2010302590097彭波GPS\Debug\GPSSatellitePosition.exe
     文件      238332  2012-05-05 11:23  2010302590097彭波GPS\Debug\GPSSatellitePosition.ilk
     文件       15081  2012-05-05 04:10  2010302590097彭波GPS\Debug\GPSSatellitePosition.obj
     文件       43520  2012-05-03 23:13  2010302590097彭波GPS\Debug\GPSSatellitePosition.opt
     文件     5494560  2012-05-03 11:38  2010302590097彭波GPS\Debug\GPSSatellitePosition.pch
     文件      418816  2012-05-05 11:23  2010302590097彭波GPS\Debug\GPSSatellitePosition.pdb
     文件       10188  2012-05-05 11:21  2010302590097彭波GPS\Debug\GPSSatellitePosition.res
     文件       50944  2012-05-05 11:23  2010302590097彭波GPS\Debug\GPSSatellitePositionDlg.obj
     文件        5487  2012-05-03 11:44  2010302590097彭波GPS\Debug\GPSTime.obj
     文件      105933  2012-05-03 11:38  2010302590097彭波GPS\Debug\StdAfx.obj
     文件      238592  2012-05-05 11:29  2010302590097彭波GPS\Debug\vc60.idb
     文件      413696  2012-05-05 11:23  2010302590097彭波GPS\Debug\vc60.pdb
     文件       44492  2012-05-05 11:21  2010302590097彭波GPS\GPSSatellitePosition.aps
     文件        2577  2012-05-05 11:29  2010302590097彭波GPS\GPSSatellitePosition.clw
     文件        2259  2012-05-03 11:37  2010302590097彭波GPS\GPSSatellitePosition.cpp
     文件        4537  2012-05-03 12:39  2010302590097彭波GPS\GPSSatellitePosition.dsp
     文件         548  2012-05-03 12:39  2010302590097彭波GPS\GPSSatellitePosition.dsw
     文件        1478  2012-05-03 11:37  2010302590097彭波GPS\GPSSatellitePosition.h
     文件       82944  2012-05-05 11:29  2010302590097彭波GPS\GPSSatellitePosition.ncb
     文件       51712  2012-05-05 11:29  2010302590097彭波GPS\GPSSatellitePosition.opt
     文件         274  2012-05-05 11:29  2010302590097彭波GPS\GPSSatellitePosition.plg
     文件        7605  2012-05-05 11:21  2010302590097彭波GPS\GPSSatellitePosition.rc
     文件       13162  2012-05-05 11:23  2010302590097彭波GPS\GPSSatellitePositionDlg.cpp
     文件        2634  2012-05-05 11:17  2010302590097彭波GPS\GPSSatellitePositionDlg.h
     文件        1830  2012-05-03 11:44  2010302590097彭波GPS\GPSTime.cpp
     文件        1015  2012-05-03 11:42  2010302590097彭波GPS\GPSTime.h
     文件        3831  2012-05-03 11:37  2010302590097彭波GPS\ReadMe.txt
     目录           0  2012-05-05 11:33  2010302590097彭波GPS\res\
     文件        1388  2012-05-05 07:02  2010302590097彭波GPS\resource.h
............此处省略4个文件信息

评论

共有 条评论

相关资源