27 lines
532 B
C++
27 lines
532 B
C++
#include "stdafx.h"
|
|
|
|
int YWriteString2(const char *string,short Address,int len,char * HKey,char *LKey,TCHAR *Path )
|
|
{
|
|
int iRet;
|
|
for ( int i=0 ; i< len ; i++ )
|
|
{
|
|
iRet = YWrite((BYTE)(string[i]),Address+i,HKey,LKey,Path );
|
|
if ( iRet!=0 )
|
|
return iRet;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int YReadString2(const char *string ,short Address,int len,char * HKey,char *LKey,TCHAR *Path )
|
|
{
|
|
int iRet;
|
|
for ( int i=0 ; i< len ; i++ )
|
|
{
|
|
iRet = YRead((BYTE*)(string+i),Address+i,HKey,LKey,Path );
|
|
if ( iRet!=0 )
|
|
return iRet;
|
|
}
|
|
return 0;
|
|
}
|
|
|