To: jobsLee
硬件提供商提供的是VC++ 做的DLL,可是没有源代码。我调用时声明函数用了Stdcall.
不知为什么。但是我也调用了其它的函数,没有出现这样的问题。
你有电话吗?我想与你电话谈一下,实在是没有办法了。
下面是他们提供的说明。
//****************************** 23 ****************************************
// int FAR PASCAL _export TSM_STDAT23( int _nComId, int _nNodeId, char *_pcSend,
// int _nConfirm ) {
//
// Set RTC data.
//
// Parameters:
// int _nComId - Id of port to read from
// int _nNodeId - Device node id, _nNodeId = 0 means braodcasting
// _nNodeId > 0, check echo anyway.
// char *_pcSend - Data address which to be set, called by reference
// int _nConfirm - Call the opposed function to read the data from device
// _nConfirm times to compare whether the device is
// receiving the setting correctly.
//
// Returns(length):
// 13 Success, if _nNodeId = 0.
// 7 Success, if _nConfirm = 0.
// 7, Success, if _nConfirm > 0.
// others Error number