-----Messaggio Originale----- Da: "Przemyslaw Czerpak" <[email protected]>
A: "Harbour Project Main Developer List." <[email protected]>
Data invio: martedì 15 settembre 2009 21.55
Oggetto: Re: [Harbour] Another OLE problem


If you can link your application with working CreateObject() function
then as next step you can try to add support for overloading [] operators.
You can make it like in xHarbour using OnError interface. Just try to
copy from xHarbour source/rtl/win32ole.prg OleCollection() method to
Harbour TOLEAUTO class in contrib/hbwin/legacy.prg.

Done. I'm still getting

Error BASE/1132  Bound error: array access
Called from MAIN(9)

from

FUNCTION MAIN()

   LOCAL oWord

   oWord = CREATEOBJECT( "Word.Application" )

   oWord:Documents:Add()

   ? oWord:ActiveDocument:StoryRanges[ 5 ]

   oWord:Visible = .T.

   RETURN NIL

EMG

--
EMAG Software Homepage:     http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page: http://www.emagsoftware.it/emgmusic
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to