searching
asked on
Controlling MS Word via COleDispatchDriver
I have an app which controls MS Word 97 via COleDispatchDriver. The problem is that "winword.exe" stays in memory (abnormally long, I checked it with Task Manager) although I use COleDispatchDriver::Releas eDispatch( ).
I've also tried the following simple code snippet which leads to the same problem.
void CMyView::OnTest()
{
COleDispatchDriver disp;
disp.CreateDispatch(_T("Wo rd.Applica tion.8"));
// do something useful
disp.ReleaseDispatch();
}
What am I doing wrong??
I've also tried the following simple code snippet which leads to the same problem.
void CMyView::OnTest()
{
COleDispatchDriver disp;
disp.CreateDispatch(_T("Wo
// do something useful
disp.ReleaseDispatch();
}
What am I doing wrong??
ASKER
Edited text of question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER