// for loop
for(int i=0; i<100; ++i)
{
Sleep(100);
}
void CRTIPLMFCDlg::OnResize()
{
// TODO: Add your control notification handler code here
HMODULE hDll = LoadLibrary("RTIPL.dll");
if(hDll)
{
PFN_RtImResize pfnResize =(PFN_RtImResize)(GetProcAddress(hDll, "RtImResize"));
if(pfnResize)
{
pfnResize("powercap.jpg", 0.9, "test1.jpg");
}
else
{
AfxMessageBox(_T("Cannot get proc address"));
}
}
else
{
AfxMessageBox(_T("Load dll failed"));
}
FreeLibrary(hDll);
AfxMessageBox(_T("Resize done"));
}