do you have access to the code of that backup application?
That the application is independent from Ol doesn´t matter, you can get
a reference on OL and close it excepting
- there are more references on it,
- a modal dialog is displaying,
- you´re working on an item. OL will prompt you for save the item. You
can cancel and OL remains opened.
You could display a dialog to the user and ask her/him for closing OL.
on error resume next
dim oApp as outlook.application
set oapp=getobject(,"outlook.application")
if not oapp is nothing then
oapp.quit
set oapp=nothing
' maybe wait a few ms
set oapp=getobject(,"outlook.application")
if not oapp is nothing then
' OL is sill running
endif
endif
We're getting very close to what I need now, except I would rather not have
to call a script, it would be better if I could do this directly from my C++
code. But I can't find an equivalent method to call from C++ in the MSDN
library.