atlspaceship.cpp

来自「vcpp32_5.rar」· C++ 代码 · 共 40 行

CPP
40
字号
// AtlSpaceShip.cpp : Implementation of CAtlSpaceShip
#include "stdafx.h"
#include "Spaceshipsvr.h"
#include "AtlSpaceShip.h"

/////////////////////////////////////////////////////////////////////////////
// CAtlSpaceShip


STDMETHODIMP CAtlSpaceShip::CallStarFleet(float fStarDate, BSTR *pbstRecipient)
{
	ATLTRACE("Calling Star fleet");
	return S_OK;
}

STDMETHODIMP CAtlSpaceShip::Fly() {
	// not doing too much here-- we're really just interested in the structure
    OutputDebugString("Entering CSpaceship::XMotion::Fly\n");
    ATLTRACE("m_nPosition = %d\n", m_nPosition);
    ATLTRACE("m_nAcceleration = %d\n", m_nAcceleration);
	return S_OK;
}

STDMETHODIMP CAtlSpaceShip::GetPosition(long* nPosition) {
	// not doing too much here-- we're really just interested in the structure
    ATLTRACE("CATLSpaceShip::GetPosition\n");
    ATLTRACE("m_nPosition = %d\n", m_nPosition);
    ATLTRACE("m_nAcceleration = %d\n", m_nAcceleration);
	*nPosition = m_nPosition;
	return S_OK;
}

STDMETHODIMP CAtlSpaceShip::Display() {
	// not doing too much here-- we're really just interested in the structure
    ATLTRACE("CSpaceship::XVisual::Display\n");
    ATLTRACE("m_nPosition = %d\n", m_nPosition);
    ATLTRACE("m_nColor = %d\n", m_nColor);
	return S_OK;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?