资源简介
利用VC编写一个通过计算机的端口实现ais数据的串口数据接收和数据的监听,是一个很好数据接收处理程序,对航海信息数据处理有重要的意义

代码片段和文件信息
// AIS.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “AIS.h“
#include “AISDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAISApp
BEGIN_MESSAGE_MAP(CAISApp CWinApp)
//{{AFX_MSG_MAP(CAISApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CAISApp construction
CAISApp::CAISApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CAISApp object
CAISApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CAISApp initialization
BOOL CAISApp::InitInstance()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
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
CAISDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21800 2009-12-30 10:51 AIS数据接收\AIS.APS
文件 2052 2009-12-31 18:23 AIS数据接收\AIS.clw
文件 2115 2008-06-04 20:48 AIS数据接收\AIS.cpp
文件 4362 2008-06-05 21:32 AIS数据接收\AIS.dsp
文件 514 2008-06-05 21:32 AIS数据接收\AIS.dsw
文件 1291 2008-06-04 20:48 AIS数据接收\AIS.h
文件 320512 2009-12-31 18:24 AIS数据接收\AIS.ncb
文件 240 2009-12-31 18:23 AIS数据接收\AIS.plg
文件 6333 2008-07-04 20:27 AIS数据接收\AIS.rc
文件 7507 2008-07-06 16:13 AIS数据接收\AISDlg.cpp
文件 1833 2008-07-04 21:50 AIS数据接收\AISDlg.h
文件 1070054 2008-07-04 22:02 AIS数据接收\AISimages\停止监听.bmp
文件 1067446 2008-07-04 22:05 AIS数据接收\AISimages\停止监听后清除数据.bmp
文件 1067610 2008-07-04 22:03 AIS数据接收\AISimages\开始监听.bmp
文件 850614 2008-07-04 22:10 AIS数据接收\AISimages\开始监听前状态.bmp
文件 76662 2008-07-04 22:12 AIS数据接收\AISimages\端口对话框设置.bmp
目录 0 2008-07-06 13:30 AIS数据接收\AISimages
文件 527646 2008-07-06 15:55 AIS数据接收\AIS接收数据程序.doc
文件 114755 2008-07-06 16:13 AIS数据接收\Debug\AIS.exe
文件 15044 2008-06-04 22:39 AIS数据接收\Debug\AIS.obj
文件 435200 2008-07-06 16:13 AIS数据接收\Debug\AIS.pdb
文件 2952 2008-07-04 20:27 AIS数据接收\Debug\AIS.res
文件 0 2008-06-04 22:39 AIS数据接收\Debug\AIS.sbr
文件 42231 2008-07-06 16:13 AIS数据接收\Debug\AISDlg.obj
文件 0 2008-07-06 16:13 AIS数据接收\Debug\AISDlg.sbr
文件 5802 2008-06-04 21:57 AIS数据接收\Debug\ClieSocket.obj
文件 0 2008-06-04 21:57 AIS数据接收\Debug\ClieSocket.sbr
文件 10185 2008-07-04 19:12 AIS数据接收\Debug\LisSocket.obj
文件 0 2008-07-04 19:12 AIS数据接收\Debug\LisSocket.sbr
文件 13091 2008-06-04 21:57 AIS数据接收\Debug\PortDlg.obj
............此处省略21个文件信息
相关资源
- Windows异步套接字网络编程
- VC 获得文件属性 获取文件的创建时
- 基于MVC模式的会员管理系统
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- vc 柱形图 CBarChart
- 用vc 写的导线测量,针对刚学测绘的
- 用VC 编写的仿QQ聊天室程序源代码
- 栅栏填充算法源码(VC)
- 简单的房屋租赁系统
- .net网站服装销售系统(MVC)
-
ob
jectARX给Auto CAD加工具条 - blowfish的vc2008工程.rar
- 画图程序MFC/VC/VC CRectTracker 串行化
- capon波束形成算法-VC实现
- 读取串口数据并画实时曲线的VC 程序
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- keil vcom windows 7 64bit 驱动
- vc URL编解码类
- vc编写中国象棋详细源码注释并附有视
- VC 围棋源代码
- 用VC 编写的基于SNMP的路由器拓扑程序
- vc利用MFC底层开发的二维GIS管理软件,
- 兰勃托地图投影VC源码
- 清华大学郑莉C 语言程序设计课件
评论
共有 条评论