FUNCTION ulong FindWindow ( ref string lpClassName, ref string
lpWindowName) Library "USER32.DLL" ALIAS FOR "FindWindowW"
FUNCTION boolean SetForegroundWindow (uLong hWindow) Library "USER32.DLL"
Do your normal setup for ole.
In your code before you do checkspelling add the following:
ulong l_handle
string ls_name, ls_name
setNull(ls_null)
ls_name = "OpusApp"
l_handle = FindWindow(ls_name, ls_null)
If 0 <> l_handle Then SetForegroundWindow (l_handle)