Files
envi-code/SourceCode/Code2026/tg_shs/inc/geo/expt.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

34 lines
977 B
C

#ifndef EXPT_H
#define EXPT_H
typedef BOOL (* ExportFun)();
inline BOOL CompareFileStamp()
{
HINSTANCE hDll=GetModuleHandle(_T("shs_utility.arx"));//U?
if(hDll!=NULL)
{
int exp=rand()%10;
ExportFun pFun=NULL;
switch(exp)
{
case 0:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp0");break;
case 1:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp1");break;
case 2:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp2");break;
case 3:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp3");break;
case 4:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp4");break;
case 5:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp5");break;
case 6:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp6");break;
case 7:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp7");break;
case 8:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp8");break;
case 9:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp9");break;
}
if(pFun!=NULL)
return pFun();
}
return FALSE;
}
#endif