mfc主程序怎么调用dll里面的对话框 5
2个回答
2011-11-15
展开全部
char buff[1024];
char buff2[1024];
buff[0]=0;
buff2[0]=0;
typedef int (WINAPI ICEPUB_GETLOGININFO)(char *strUserId,char *strPassWord,char *strTitle);
ICEPUB_GETLOGININFO *icePub_getLoginInfo = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_getLoginInfo=(ICEPUB_GETLOGININFO*)GetProcAddress(hDLLDrv, "icePub_getLoginInfo");
}
if(icePub_dispText)
icePub_getLoginInfo(buff,buff2,"请输入登录信息");
if(hDLLDrv)
FreeLibrary(hDLLDrv);
if(strcmp(buff,"admin") == 0 && strcmp(buff2,"888888") == 0)
{
//登录成功
}
char buff2[1024];
buff[0]=0;
buff2[0]=0;
typedef int (WINAPI ICEPUB_GETLOGININFO)(char *strUserId,char *strPassWord,char *strTitle);
ICEPUB_GETLOGININFO *icePub_getLoginInfo = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_getLoginInfo=(ICEPUB_GETLOGININFO*)GetProcAddress(hDLLDrv, "icePub_getLoginInfo");
}
if(icePub_dispText)
icePub_getLoginInfo(buff,buff2,"请输入登录信息");
if(hDLLDrv)
FreeLibrary(hDLLDrv);
if(strcmp(buff,"admin") == 0 && strcmp(buff2,"888888") == 0)
{
//登录成功
}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询