游戏手柄控制小车VC程序


游戏手柄控制小车VC程序 游戏手柄控制小车VC程序 游戏手柄控制小车VC程序
资源截图
代码片段和文件信息
// CommWizard.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “CommWizard.h“
#include “CommWizardDlg.h“
#include 
#include “CommWizard_i.c“

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

/////////////////////////////////////////////////////////////////////////////
// CCommWizardApp

BEGIN_MESSAGE_MAP(CCommWizardApp CWinApp)
//{{AFX_MSG_MAP(CCommWizardApp)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CCommWizardApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CCommWizardApp object

CCommWizardApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CCommWizardApp initialization

BOOL CCommWizardApp::InitInstance()
{
if (!InitATL())
return FALSE;

AfxEnableControlContainer();

CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

if (cmdInfo.m_bRunembedded || cmdInfo.m_bRunAutomated)
{
return TRUE;
}



// 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

CCommWizardDlg 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;
}


CCommWizardModule _Module;

BEGIN_object_MAP(objectMap)
END_object_MAP()

LONG CCommWizardModule::Unlock()
{
AfxOleUnlockApp();
return 0;
}

LONG CCommWizardModule::Lock()
{
AfxOleLockApp();
return 1;
}
LPCTSTR CCommWizardModule::FindOneOf(LPCTSTR p1 LPCTSTR p2)
{
while (*p1 != NULL)
{
LPCTSTR p = p2;
while (*p != NULL)
{
if (*p1 == *p)
return CharNext(p1);
p = CharNext(p);
}
p1++;
}
return NULL;
}


int CCommWizardApp::ExitInstance()
{
if (m_bATLInited)
{
_Module.RevokeClassobjects();
_Module.Term();
CoUninitialize();
}

return CWinApp::ExitInstance();


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      26660  2010-07-06 16:51  Comm_joystickbakCommWizard.aps

     文件       3686  2010-07-17 19:10  Comm_joystickbakCommWizard.clw

     文件       4371  2010-06-04 15:57  Comm_joystickbakCommWizard.cpp

     文件       5290  2010-06-04 15:57  Comm_joystickbakCommWizard.dsp

     文件        589  2010-06-04 15:57  Comm_joystickbakCommWizard.dsw

     文件       1485  2010-06-04 15:57  Comm_joystickbakCommWizard.h

     文件        422  2010-06-04 15:57  Comm_joystickbakCommWizard.idl

     文件     328704  2010-07-17 19:10  Comm_joystickbakCommWizard.ncb

     文件     567808  2010-07-17 19:10  Comm_joystickbakCommWizard.opt

     文件       1982  2010-06-05 13:55  Comm_joystickbakCommWizard.plg

     文件      11468  2010-06-05 13:55  Comm_joystickbakCommWizard.rc

     文件        183  2010-06-04 15:57  Comm_joystickbakCommWizard.rgs

     文件      21092  2010-06-05 13:55  Comm_joystickbakCommWizardDlg.cpp

     文件       2946  2010-06-05 13:54  Comm_joystickbakCommWizardDlg.h

     文件        949  2010-06-04 15:57  Comm_joystickbakCommWizard_i.c

     文件       1319  2010-06-04 15:57  Comm_joystickbakCommWizard_i.h

     文件    6325248  2010-06-05 13:55  Comm_joystickbakDebugCommWizard.bsc

     文件    2203728  2010-06-05 13:55  Comm_joystickbakDebugCommWizard.exe

     文件    2850480  2010-06-05 13:55  Comm_joystickbakDebugCommWizard.ilk

     文件      76551  2010-06-04 21:12  Comm_joystickbakDebugCommWizard.obj

     文件    8774412  2010-06-04 15:57  Comm_joystickbakDebugCommWizard.pch

     文件    4252672  2010-06-05 13:55  Comm_joystickbakDebugCommWizard.pdb

     文件      12228  2010-06-05 13:55  Comm_joystickbakDebugCommWizard.res

     文件          0  2010-06-04 21:12  Comm_joystickbakDebugCommWizard.sbr

     文件       1136  2010-06-04 15:57  Comm_joystickbakDebugCommWizard.tlb

     文件      69208  2010-06-05 13:55  Comm_joystickbakDebugCommWizardDlg.obj

     文件          0  2010-06-05 13:55  Comm_joystickbakDebugCommWizardDlg.sbr

     文件      72625  2010-06-04 15:57  Comm_joystickbakDebugHexEdit.obj

     文件          0  2010-06-04 15:57  Comm_joystickbakDebugHexEdit.sbr

     文件      10395  2010-06-04 15:57  Comm_joystickbakDebuginfo.obj

............此处省略30个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)