首页上一页 1 下一页尾页 1 条记录 1/1页
学习中看不懂的
发表在C语言图书答疑
2010-11-03
是否精华
是
否
版块置顶:
是
否
#include "stdafx.h"
#include "ButtonTest.h"
#include "ButtonTestDlg.h"
[u][font color=#00FF00][font color=#FF0000]#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
[/u][/font][/font]/////////////////////////////////////////////////////////////////////////////
// CButtonTestApp
BEGIN_MESSAGE_MAP(CButtonTestApp, CWinApp)
//{{AFX_MSG_MAP(CButtonTestApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CButtonTestApp construction
CButtonTestApp::CButtonTestApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CButtonTestApp object
CButtonTestApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CButtonTestApp initialization
BOOL CButtonTestApp::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
CButtonTestDlg 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;
}
这是在用《视频学VISUAL C++》中遇到的问题:
#include "stdafx.h"
#include "ButtonTest.h"
#include "ButtonTestDlg.h"
这是文件的相关预处理文件,那么下面的有什么作用:
[u][font color=#00FF00][font color=#FF0000]#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
还有我想更好的学习Vsual C++,学编程,做软件,还有很好的书推荐吗?
#include "ButtonTest.h"
#include "ButtonTestDlg.h"
[u][font color=#00FF00][font color=#FF0000]#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
[/u][/font][/font]/////////////////////////////////////////////////////////////////////////////
// CButtonTestApp
BEGIN_MESSAGE_MAP(CButtonTestApp, CWinApp)
//{{AFX_MSG_MAP(CButtonTestApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CButtonTestApp construction
CButtonTestApp::CButtonTestApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CButtonTestApp object
CButtonTestApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CButtonTestApp initialization
BOOL CButtonTestApp::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
CButtonTestDlg 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;
}
这是在用《视频学VISUAL C++》中遇到的问题:
#include "stdafx.h"
#include "ButtonTest.h"
#include "ButtonTestDlg.h"
这是文件的相关预处理文件,那么下面的有什么作用:
[u][font color=#00FF00][font color=#FF0000]#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
还有我想更好的学习Vsual C++,学编程,做软件,还有很好的书推荐吗?