16,472
社区成员
发帖
与我相关
我的任务
分享
count = declare.GetLength();
pFunc[i].szFuncDeclare = new TCHAR[count+1];
_tcscpy( pFunc[i].szFuncDeclare,declare );
count = func.GetLength();
pFunc[i].szFunction = new TCHAR[count+1];
_tcscpy(pFunc[i].szFunction,func);
count = declare.GetLength();
pFunc[i].szFuncDeclare = new TCHAR[count+1];
_tcscpy( pFunc[i].szFuncDeclare,declare );
TCHAR * bms= new TCHAR[count+1];
_tcscpy( bms,declare );
pFunc[i].szFuncDeclare=bms ;
count = func.GetLength();
pFunc[i].szFunction = new TCHAR[count+1];
_tcscpy(pFunc[i].szFunction,func);
if( nFuncNum > 0 )
{
pFunc = new struct CustomFunc[nFuncNum];
for( i=0; i<nFuncNum; i++)
{
WORD count;
CString declare,func;
ar >> declare;
ar >> func;
if( _tcscmp(version, VERSION60)>=0 )
{
BOrSecret( declare );
BOrSecret( func );
}
count = declare.GetLength();
pFunc[i].szFuncDeclare = new TCHAR[count+1];
_tcscpy( pFunc[i].szFuncDeclare,declare );
count = func.GetLength();
pFunc[i].szFunction = new TCHAR[count+1];
_tcscpy(pFunc[i].szFunction,func);
ar >> count;
pFunc[i].szEvent = new TCHAR[count+1];
ar.Read( pFunc[i].szEvent,count );
pFunc[i].szEvent[count] = '\0';
ar >> pFunc[i].clsid.Data1 >> pFunc[i].clsid.Data2 >> pFunc[i].clsid.Data3;
for( int j = 0; j < 8; j++ )
{
BYTE abyte;
ar >> abyte;
pFunc[i].clsid.Data4[j] = (TCHAR)abyte;
}
}
}