typedef void(*pNewThread)(void);
m_hDll = ::LoadLibrary(_T("Insert.dll"));
if(! m_hDll)
{
MessageBox(_T("加载DLL失败!"));
}
else
{
pNewThread pFun = (pNewThread) GetProcAddress(m_hDll, _T("NewThread"));
if(! pFun)
{
CString str;
str.Format(_T("%d"), ::GetLastError());
MessageBox(_T("获取函数地址失败!"), str);
}
pFun();
}