HINSTANCE hInstance=LoadLibrary("Login.dll"); //hInstance能得到值
FuncUserLogin pUserLogin=(FuncUserLogin)GetProcAddress(hInstance,"UserLogin");
if(pUserLogin(strCurrentUser.strCurrentUserDepartment.GetBuffer(10),GlobalConn)==false) //这里出错
{
return FALSE; }
strCurrentUser.strCurrentUserDepartment.ReleaseBuffer();
FreeLibrary(hInstance);
同样是上面一段代码。如果使用静态编译就出错。动态编译就没有问题。
静态编译的时候提示 afxwin1.inl 22行错误。怎么回事啊?
FuncUserLogin pUserLogin=(FuncUserLogin)GetProcAddress(hInstance,"UserLogin");
if(pUserLogin(strCurrentUser.strCurrentUserDepartment.GetBuffer(10),GlobalConn)==false) //这里出错
{
return FALSE; }
strCurrentUser.strCurrentUserDepartment.ReleaseBuffer();
FreeLibrary(hInstance);
同样是上面一段代码。如果使用静态编译就出错。动态编译就没有问题。
静态编译的时候提示 afxwin1.inl 22行错误。怎么回事啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货