Does someone know how to open a msg-file.
I tried following but get compiling errors:
- Code: Select all Expand view
- TRY
oOutlook := TOleAuto():New( "Outlook.Application" )
CATCH
Msginfo( "Outlook nicht installiert" )
quit
END
outlookMsg := oOutlook:CreateItemFromTemplate("c:\emailArchiv\test.msg")
msginfo( outlookMsg:body )
msginfo( outlookMsg:subject )
--------------------Configuration: xfang - Release--------------------
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
C:\ENTWIC~1\winhotel\xfang\source\testole.prg(124) Error E0030 Syntax error: "syntax error at 'MSGINFO'"
1 error
No code generated
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
testole.c:
Error E2209 testole.c 27: Unable to open include file 'OOUTLOOK.xns'
Error E2141 testole.c 28: Declaration syntax error
Error E2451 testole.c 170: Undefined symbol 'OOUTLOOK'
Error E2141 testole.c 170: Declaration syntax error
Error E2190 testole.c 170: Unexpected }
Error E2040 testole.c 170: Declaration terminated incorrectly
Error E2040 testole.c 170: Declaration terminated incorrectly
Error E2190 testole.c 254: Unexpected }
Error E2109 testole.c 254: Not an allowed type in function hb_vm_SymbolInit_TESTOLE
*** 9 errors in Compile ***
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Duplicate resource: Type 2 (BITMAP), ID BOTTOM; File C:\ENTWICKLUNG_2012\WINHOTEL\XFANG\XFANG.RES resource kept; file C:\ENTWICKLUNG_2012\WINHOTEL\RESOURCE\ALLG.RES resource discarded.
Duplicate resource: Type 2 (BITMAP), ID TOP; File C:\ENTWICKLUNG_2012\WINHOTEL\XFANG\XFANG.RES resource kept; file C:\ENTWICKLUNG_2012\WINHOTEL\RESOURCE\ALLG.RES resource discarded.
1 Datei(en) kopiert.
xfang.EXE - 11 error(s), 0 warning(s)
Thanks in advance
Otto