Link to home
Start Free TrialLog in
Avatar of searching
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::ReleaseDispatch().
I've also tried the following simple code snippet which leads to the same problem.

void CMyView::OnTest()
{
    COleDispatchDriver disp;
    disp.CreateDispatch(_T("Word.Application.8"));
    // do something useful
    disp.ReleaseDispatch();
}

What am I doing wrong??
Avatar of searching
searching

ASKER

Edited text of question.
Edited text of question.
ASKER CERTIFIED SOLUTION
Avatar of Tommy Hui
Tommy Hui

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial