-----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


But 1-st you should check why CREATEOBJECT() does not work for you.
If you look at contrib/hbwin/legacy.prg then you will find that
CREATEOBJECT() is simple wrapper to TOleAuto():New()

  FUNCTION CreateObject( xOle, cClass )
     RETURN TOleAuto():New( xOle, cClass )

I'm trying to compile legacy.prg but I'm getting

Error: Unresolved external '_HB_FUN___OLEPDISP'

It should be in hbwin.lib but it is not. It's normal?

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.

Ok, I will try.

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