wpeccp 发表于 2024-5-31 22:39:56

易语言调用dll 发卡机二次开发发卡问题

问题是这样我手上有个发卡机,想用易语言写个发卡程序。但是发卡机给的厂商给的说明,不知道怎么写成易语言程序。主要是搞不懂指针问题

<p class="MsoNormal" style="text-align: center;"><span style="font-family: "Courier New"; color: rgb(0, 0, 0);"><font size="7">dll函数说明</font></span></p><p class="MsoNormal" style="text-align: center;"><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">ATA_StandWrite</span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">(</span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">ATA_ProteWrite</span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">)</span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;"><o:p></o:p></span></p><p class="MsoNormal" style="text-align: center;"><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">函数原型:</span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">ATA_StandWrite(BYTE page, BYTE block, BYTE lock, </span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;"><o:p></o:p></span></p><p class="MsoNormal" style="text-align: center;"><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">                            </span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">BYTE *block_data,</span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;"> </span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">int addr=0)</span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;"><o:p></o:p></span></p><p class="MsoNormal" style="text-align: center;">
</p><p class="MsoNormal" style="text-align: center;"><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">函数功能:</span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;"><font face="宋体">写卡</font></span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">,假如卡片有密码使用</span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">ATA_ProteWrite</span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">,没有密码用</span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">ATA_StandWrite</span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;"><o:p></o:p></span></p><p class="MsoNormal" style="text-align: center;"><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">参数说明:</span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">page-><font face="宋体">页地址,起始页为</font></span><span style="mso-spacerun:'yes';font-family:宋体;mso-ascii-font-family:'Courier New';
mso-hansi-font-family:'Courier New';mso-bidi-font-family:'Courier New';color:rgb(0,0,0);
font-size:10.0000pt;mso-font-kerning:0.0000pt;">0<font face="宋体">,</font><font face="Courier New">T5557</font><font face="宋体">总共</font><font face="Courier New">2</font><font face="宋体">页,</font><font face="Courier New">1</font><font face="宋体">页不可写</font></span><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;"><o:p></o:p></span></p><p class="MsoNormal" style="text-align: center;"><span style="mso-spacerun:'yes';font-family:'Courier New';mso-fareast-font-family:宋体;
color:rgb(0,0,0);font-size:10.0000pt;mso-font-kerning:0.0000pt;">
页: [1]
查看完整版本: 易语言调用dll 发卡机二次开发发卡问题