本文介绍了C ++中的ScardTransmission错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我已经实现了Scardtransmit函数来发送APDU命令,但是它给出了错误14.我不知道什么表示...代码为:-
以前所有的功能,例如scard Establishment context n scardconnect都可以正常工作.
我不知道错误....请帮助..
HiI have implemented a scardtransmit function to send a APDU command but its giving error 14. i don''t know what that means ...code is:-
all the previous functions like scardestablish context n scardconnect are working fine.
i don''t know the error.... please help..
DWORD dwActiveProtocol, dwSendLength, dwRecvLength;
SCARD_IO_REQUEST pioRecvPci;
BYTE pbRecvBuffer[256];
BYTE pbSendBuffer[] = { (BYTE)0x60,(BYTE) 0x00,(BYTE) 0x02, (BYTE)0x6C, (BYTE)0x35, (BYTE)0x3B, (BYTE)0x03 };
dwSendLength = sizeof(pbSendBuffer);
dwRecvLength = sizeof(pbRecvBuffer);
long result =com(phCard, 0, pbSendBuffer, dwSendLength,&pioRecvPci, pbRecvBuffer, &dwRecvLength);
if(result!=SCARD_S_SUCCESS){
cout<<"unable to transmit the command\n";
}
如果我从pbSendBuffer中删除(BYTE),则错误为22 ...
帮助...
if i remove the (BYTE) from pbSendBuffer then the error is 22...
help...
推荐答案
这篇关于C ++中的ScardTransmission错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!