Hello,
How can I check in FWH if Outlook is running on my PC?
I tried to use GetTasks() but Outlook can not be found in the tasklist.
Is there a difference in Outlook 2003, 2007, 2010 or 2013?
Anyone any idea?
Thanks a lot in advance.
if FWGetOleObject( "outlook.application" ) == nil
MsgInfo( "outlook is not available" )
else
MsgInfo( "outlook is available" )
endif
static function lfSetMail(oCMSFolder)
local NameSpace,oInbox
TRY
oOL := TOleAuto():New( "Outlook.Application" )
oNameSpace := oOL:Get( "GetNameSpace", "MAPI" )
oInbox := oNameSpace:Get( "GetDefaultFolder",6) // 6 = Inbox-Folder
TRY
oCMSFolder := oInbox:Folders("cmsmail")
CATCH
MsgAlert('No CMSMAIL Folder Setup')
END
CATCH
MsgAlert('Outlook Not Installed')
END
return(oCMSFolder)
Because I want to prevent that Outlook is started more than one time.
TRY
oObj := GetActiveObject( cApp )
? 'already running'
CATCH
TRY
oObj := CreateObject( cApp )
? 'Created now'
CATCH
? 'app not available
END
END
driessen wrote:Thanks a lot everybody for trying to help me.
Unfortunately, whatever I try, I always get the error : "Error TOleAuto/65535 TOLEAUTO:GETACTIVEOBJECT".
What am I doing wrong?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 64 guests