• 大小: 162KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2024-01-17
  • 语言: C/C++
  • 标签: 104规约  源码  主站  

资源简介

104规约主站库源代码,提供包括:动态连接库和C/C++源代码-104

资源截图

代码片段和文件信息

#include “stdafx.h“
#include “IEC104link.h“
#include “Master104_Demo.h“
#include “Master104_DemoDlg.h“
#include “Master104real.h“ 
CMaster104real::CMaster104real()
{
}
CMaster104real::~CMaster104real()
{
}
void CMaster104real::On_Recv_ASDU_Msg(BYTE *msgbufint len )//显示接收报文
{
CString ch str;
str=“Rx:“;
int plen=len;
if (len>10) plen=10;
ch.Format(“ len=%04d  “len);
str=str+ch;
for(int i=0;i {
ch.Format(“ %02x“msgbuf[i]);
str+=ch;
}
str=str+“.......“;
dlg->m_list.AddString(str);
if(dlg->m_list.GetCount()>100)
dlg->m_list.DeleteString(0);
int count=dlg->m_list.GetCount();
dlg->m_list.SetCurSel(count-1);
}

void CMaster104real::On_SendMsg(BYTE *msgbufint len)
{
TRACE(“\nSend: “);
for(int i=0;i {
TRACE(“ %02x “msgbuf[i]);
}
}
void CMaster104real::On_RecvMsg(BYTE *msgbufint len)
{
TRACE(“\nRecv: “);
for(int i=0;i {
TRACE(“ %02x “msgbuf[i]);
}
}
void CMaster104real::On_ErrorMsg(char *msgbuf)
{
TRACE(“\n%s“msgbuf);
}

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

     文件       6143  2004-11-23 11:19  104Master\Include\IEC104link.h

     文件        830  2004-11-23 11:16  104Master\Include\Master104.h

     文件        335  2004-11-23 11:15  104Master\Include\typedef.h

     目录          0  2007-12-04 20:59  104Master\Include

     文件     135239  2004-11-23 12:04  104Master\Lib\Master_104.dll

     文件      29564  2004-11-23 12:04  104Master\Lib\Master_104.lib

     目录          0  2007-12-04 20:59  104Master\Lib

     文件         16  2004-12-08 14:44  104Master\Master104_Demo\MASTER104KEY.txt

     文件       1051  2004-11-06 16:23  104Master\Master104_Demo\Master104real.cpp

     文件        458  2004-11-06 16:23  104Master\Master104_Demo\Master104real.h

     文件      23396  2004-12-08 14:51  104Master\Master104_Demo\Master104_Demo.aps

     文件       2430  2004-12-09 10:48  104Master\Master104_Demo\Master104_Demo.clw

     文件       2175  2004-11-04 11:46  104Master\Master104_Demo\Master104_Demo.cpp

     文件       4610  2004-12-01 09:08  104Master\Master104_Demo\Master104_Demo.dsp

     文件        849  2004-11-04 11:52  104Master\Master104_Demo\Master104_Demo.dsw

     文件     114782  2004-12-01 09:08  104Master\Master104_Demo\Master104_Demo.exe

     文件       1412  2004-11-04 11:46  104Master\Master104_Demo\Master104_Demo.h

     文件     241292  2004-12-01 09:08  104Master\Master104_Demo\Master104_Demo.ilk

     文件     164864  2004-12-09 10:48  104Master\Master104_Demo\Master104_Demo.ncb

     文件     110592  2004-12-09 10:48  104Master\Master104_Demo\Master104_Demo.opt

     文件       5458  2004-12-01 09:08  104Master\Master104_Demo\Master104_Demo.plg

     文件       7239  2004-11-19 10:35  104Master\Master104_Demo\Master104_Demo.rc

     文件      11896  2004-11-06 16:20  104Master\Master104_Demo\Master104_DemoDlg.cpp

     文件       2344  2004-11-06 09:32  104Master\Master104_Demo\Master104_DemoDlg.h

     文件     135239  2004-11-23 12:04  104Master\Master104_Demo\Master_104.dll

     文件       3723  2004-11-04 11:46  104Master\Master104_Demo\ReadMe.txt

     文件       1078  2004-11-04 11:46  104Master\Master104_Demo\res\Master104_Demo.ico

     文件        406  2004-11-04 11:46  104Master\Master104_Demo\res\Master104_Demo.rc2

    ..A.SH.      3072  2004-11-23 14:39  104Master\Master104_Demo\res\Thumbs.db

     目录          0  2007-12-04 20:59  104Master\Master104_Demo\res

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

评论

共有 条评论