Hi Enrico,

Il 15/09/2009 11.23, Enrico Maria Giordano ha scritto:
The following sample

FUNCTION MAIN()

   LOCAL oWord

   oWord = CREATEOBJECT( "Word.Application" )

   oWord:Documents:Add()

   oWord:Visible = .T.

   RETURN NIL

stops with

Error TOleAuto/65535  : TOLEAUTO:NEW
Called from THROW(0)
Called from TOLEAUTO:NEW(0)
Called from CREATEOBJECT(0)
Called from MAIN(5)

It works fine using xHarbour. What am I missing?


What compiler ?
With mingw here it works correctly, below there is trace of hbmk2

--------
J:\sviluppo\cvs\harbour-version\systemWMIwatch\tests>hbmk2 ote1.prg -trace

hbmk2: Processing local make script: hbmk.hbm hbmk2: Processing configuration: j:\cvs\harbour_mingw\bin\hbmk.cfg hbmk2: Harbour compiler command (internal): (j:\cvs\harbour_mingw\bin\harbour.exe) -n2 ote1.prg -ij:/cvs/harbour_mingw/include hbmk2: C compiler command: gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -Ij:/cvs/harbour_mingw/include ote1.c c:\temp\hbmk_mjhklo.c hbmk2: Linker command: gcc.exe ote1.o hbmk_mjhklo.o -mconsole -Wl,--start-group -lhbwin -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oote1.exe -Lj:/cvs/harbour_mingw/lib/win/mingw
--------
and result is that Word opens correctly.
Mingw + Vista + Office 2007

Best regards,
Francesco


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to