資源簡介
本資源利用VC++,基于對話框實現了大地坐標與三維坐標之間的互相轉換,希望對初學者有用

代碼片段和文件信息
//?ChangePosition.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ChangePosition.h“
#include?“ChangePositionDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChangePositionApp
BEGIN_MESSAGE_MAP(CChangePositionApp?CWinApp)
//{{AFX_MSG_MAP(CChangePositionApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CChangePositionApp?construction
CChangePositionApp::CChangePositionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChangePositionApp?object
CChangePositionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChangePositionApp?initialization
BOOL?CChangePositionApp::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
CChangePositionDlg?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-04-02?22:26??ChangePosition\
?????文件???????23548??2012-04-02?22:24??ChangePosition\ChangePosition.aps
?????文件????????3266??2012-04-02?22:25??ChangePosition\ChangePosition.clw
?????文件????????2175??2011-11-08?22:24??ChangePosition\ChangePosition.cpp
?????文件????????4563??2011-11-08?22:43??ChangePosition\ChangePosition.dsp
?????文件?????????553??2011-11-08?22:43??ChangePosition\ChangePosition.dsw
?????文件????????1485??2011-11-28?17:24??ChangePosition\ChangePosition.h
?????文件??????107520??2012-04-02?22:26??ChangePosition\ChangePosition.ncb
?????文件???????50688??2012-04-02?22:26??ChangePosition\ChangePosition.opt
?????文件????????1211??2011-12-08?21:49??ChangePosition\ChangePosition.plg
?????文件????????8261??2011-11-29?19:17??ChangePosition\ChangePosition.rc
?????文件????????4776??2011-11-29?19:16??ChangePosition\ChangePositionDlg.cpp
?????文件????????1503??2011-11-08?22:26??ChangePosition\ChangePositionDlg.h
?????目錄???????????0??2011-12-08?21:49??ChangePosition\Debug\
?????文件??????114764??2011-12-08?21:49??ChangePosition\Debug\ChangePosition.exe
?????文件??????218552??2011-12-08?21:49??ChangePosition\Debug\ChangePosition.ilk
?????文件???????14446??2011-11-28?17:24??ChangePosition\Debug\ChangePosition.obj
?????文件?????5494536??2011-11-28?17:24??ChangePosition\Debug\ChangePosition.pch
?????文件??????386048??2011-12-08?21:49??ChangePosition\Debug\ChangePosition.pdb
?????文件????????3944??2011-11-29?19:17??ChangePosition\Debug\ChangePosition.res
?????文件???????27783??2011-11-29?19:16??ChangePosition\Debug\ChangePositionDlg.obj
?????文件???????24673??2011-12-08?21:49??ChangePosition\Debug\DialogDts.obj
?????文件???????26855??2011-11-28?17:24??ChangePosition\Debug\DialogStd.obj
?????文件??????106796??2011-11-28?17:24??ChangePosition\Debug\StdAfx.obj
?????文件??????287744??2011-12-08?21:49??ChangePosition\Debug\vc60.idb
?????文件??????438272??2011-12-08?21:49??ChangePosition\Debug\vc60.pdb
?????文件????????2437??2011-12-08?21:49??ChangePosition\DialogDts.cpp
?????文件????????1323??2011-11-09?13:07??ChangePosition\DialogDts.h
?????文件????????3038??2011-11-28?17:24??ChangePosition\DialogStd.cpp
?????文件????????1323??2011-11-28?17:22??ChangePosition\DialogStd.h
?????文件????????3723??2011-11-08?22:24??ChangePosition\ReadMe.txt
............此處省略6個文件信息
評論
共有 條評論