extern __declspec(dllexport) void CopyDlg()
{
    AFX_MANAGE_STATE(AfxGetStaticModuleState());
    CCopyFtrDlg dlg ;
    dlg.DoModal();
}
调用时总有异常!!!!