资源简介
GPIB_VC++ 开发库及示例,是初学者参考的不错示例。
代码片段和文件信息
// GPIB.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “GPIB.h“
#include “GPIBDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGPIBApp
BEGIN_MESSAGE_MAP(CGPIBApp CWinApp)
//{{AFX_MSG_MAP(CGPIBApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CGPIBApp construction
CGPIBApp::CGPIBApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CGPIBApp object
CGPIBApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CGPIBApp initialization
BOOL CGPIBApp::InitInstance()
{
// 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
CGPIBDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 636 2003-12-13 17:31 Resource.h
目录 0 2003-12-13 17:15 res\
文件 396 2003-12-13 17:15 res\GPIB.rc2
文件 1078 2003-12-13 17:15 res\GPIB.ico
文件 1173 2003-12-13 19:14 GPIB.clw
文件 2002 2003-12-13 17:15 GPIB.cpp
文件 4123 2003-12-13 17:15 GPIB.dsp
文件 533 2003-12-13 17:15 GPIB.dsw
文件 1302 2003-12-13 17:15 Gpib.h
文件 9814 1997-08-04 16:42 Gpib.lib
文件 5373 2003-12-13 17:31 GPIB.rc
文件 753 2003-12-13 17:33 GpibAPI.h
文件 4241 2003-12-13 19:21 GPIBDlg.cpp
文件 1323 2003-12-13 17:44 GPIBDlg.h
文件 3543 2003-12-13 17:15 ReadMe.txt
目录 0 2003-12-13 17:54 Release\
文件 33792 1997-08-04 16:42 Release\Gpib.dll
文件 20480 2003-12-13 19:21 Release\GPIB.exe
文件 206 2003-12-13 17:15 StdAfx.cpp
文件 999 2003-12-13 17:15 StdAfx.h
- 上一篇:C语言实现校园导航系统
- 下一篇:火车订票系统用c语言实现
评论
共有 条评论