搜档网
当前位置:搜档网 › dll说明

dll说明

动态链接库函数:
int changeFile( CString strPupFile,VWPINFODLL & VwpInfoDll,MESOOUT & MesoOut,CJWDINFO & JwdInfo)
返回值:0 成功,-1 失败

strPupFile :pup数据文件路径名

其他为三种数据结构类型::


48(VWP) VWPINFODLL
58(STI) 59 60(M) MESOOUT
其他 CJWDINFO


//vwp out
typedef struct tagVWPOUT
{
char strTime[100];
int dir[30];
int vel[30];
}VWPINFOOUT;

typedef struct tagVWPDLL
{
VWPINFOOUT VwpInfoOut[11];
}VWPINFODLL;
////


////M

typedef struct tagMESO
{
char Meso[40][81];
}MESOOUT;

/////
其他
//////
class CJWDINFO
{
public:
CTime time;
int nPro;
double slon;
double elon;
double slan;
double elan;
int dxlon;
int dylan;
char Value[700][700];
};
///

调用动态链接库示例:
VWPINFODLL * VwpInfoDll ;
MESOOUT * MesoOut;
CJWDINFO * JwdInfo;
VwpInfoDll=new VWPINFODLL;
MesoOut=new MESOOUT;
JwdInfo=new CJWDINFO;
int nflag= changeFile(CPupFile,*VwpInfoDll,*MesoOut,*JwdInfo);
if (nflag==0)
{
AfxMessageBox("成功!");

}
else
{
AfxMessageBox("失败!");
}
delete VwpInfoDll;
delete MesoOut;
delete JwdInfo;

相关主题