简化SO7 utility的释放

This commit is contained in:
TAO Cheng
2013-06-21 14:22:11 +08:00
parent e842462af2
commit 14b1638972
26 changed files with 529 additions and 54 deletions
@@ -32,7 +32,7 @@ CSo7_Interface::~CSo7_Interface()
//========================================
void CSo7_Interface::InitDll(void)
{
m_hImageDLL=LoadLibrary(_T("Image.dll"));
m_hImageDLL=(HMODULE)LoadLibrary(GetAppPath()+_T("\\Image.dll"));
if(m_hImageDLL)
{
Pro_cmd=(PRO_CMD)GetProcAddress(m_hImageDLL,"Pro_Cmd");
@@ -44,12 +44,20 @@ void CSo7_Interface::InitDll(void)
Pro_cmd(VINIT_DLL,(LPARAM)&Image_Info);
Pro_cmd(MINIT_USB,(LPARAM)&Image_Info);
}
else
{
MessageBox(NULL, _T("Load Image.dll failed!"), _T("Message"), MB_OK);
}
//=====================================
m_hFitDLL=LoadLibrary(_T("FitDll.dll"));
m_hFitDLL=(HMODULE)LoadLibrary(GetAppPath()+_T("\\FitDll.dll"));
if(m_hFitDLL)
{
g_FitFace_PCD=(FITTING_SURFACE_PCD)GetProcAddress(m_hFitDLL,"FaceFit");
}
else
{
MessageBox(NULL, _T("Load FitDll.dll failed!"), _T("Message"), MB_OK);
}
}
//========================================
void CSo7_Interface::StartStoreData(void)