资源简介

游戏手柄控制小车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_joystickbak\CommWizard.aps

     文件       3686  2010-07-17 19:10  Comm_joystickbak\CommWizard.clw

     文件       4371  2010-06-04 15:57  Comm_joystickbak\CommWizard.cpp

     文件       5290  2010-06-04 15:57  Comm_joystickbak\CommWizard.dsp

     文件        589  2010-06-04 15:57  Comm_joystickbak\CommWizard.dsw

     文件       1485  2010-06-04 15:57  Comm_joystickbak\CommWizard.h

     文件        422  2010-06-04 15:57  Comm_joystickbak\CommWizard.idl

     文件     328704  2010-07-17 19:10  Comm_joystickbak\CommWizard.ncb

     文件     567808  2010-07-17 19:10  Comm_joystickbak\CommWizard.opt

     文件       1982  2010-06-05 13:55  Comm_joystickbak\CommWizard.plg

     文件      11468  2010-06-05 13:55  Comm_joystickbak\CommWizard.rc

     文件        183  2010-06-04 15:57  Comm_joystickbak\CommWizard.rgs

     文件      21092  2010-06-05 13:55  Comm_joystickbak\CommWizardDlg.cpp

     文件       2946  2010-06-05 13:54  Comm_joystickbak\CommWizardDlg.h

     文件        949  2010-06-04 15:57  Comm_joystickbak\CommWizard_i.c

     文件       1319  2010-06-04 15:57  Comm_joystickbak\CommWizard_i.h

     文件    6325248  2010-06-05 13:55  Comm_joystickbak\Debug\CommWizard.bsc

     文件    2203728  2010-06-05 13:55  Comm_joystickbak\Debug\CommWizard.exe

     文件    2850480  2010-06-05 13:55  Comm_joystickbak\Debug\CommWizard.ilk

     文件      76551  2010-06-04 21:12  Comm_joystickbak\Debug\CommWizard.obj

     文件    8774412  2010-06-04 15:57  Comm_joystickbak\Debug\CommWizard.pch

     文件    4252672  2010-06-05 13:55  Comm_joystickbak\Debug\CommWizard.pdb

     文件      12228  2010-06-05 13:55  Comm_joystickbak\Debug\CommWizard.res

     文件          0  2010-06-04 21:12  Comm_joystickbak\Debug\CommWizard.sbr

     文件       1136  2010-06-04 15:57  Comm_joystickbak\Debug\CommWizard.tlb

     文件      69208  2010-06-05 13:55  Comm_joystickbak\Debug\CommWizardDlg.obj

     文件          0  2010-06-05 13:55  Comm_joystickbak\Debug\CommWizardDlg.sbr

     文件      72625  2010-06-04 15:57  Comm_joystickbak\Debug\HexEdit.obj

     文件          0  2010-06-04 15:57  Comm_joystickbak\Debug\HexEdit.sbr

     文件      10395  2010-06-04 15:57  Comm_joystickbak\Debug\info.obj

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

评论

共有 条评论