But viktor HBOLE I think that was discontinued or not ?

This the cuestion because I am trying HBWIN

Bruno

2009/6/15 Viktor Szakáts <harbour...@syenar.hu>

> I've added support (untested) for CREATEOLEOBJECT().
>
> I've no idea what the rest does, so someone else should do it.
>
> In oohg, if you're using the .hbc file, try adding hbole to one
> of the libs= lines, and see what happens. Looks like they
> provide this lib, but I missed it from the liblist.
>
> Brgds,
> Viktor
>
> On Mon, Jun 15, 2009 at 3:06 PM, Bruno Luciani<bruno.luci...@gmail.com>
> wrote:
> > I have problems too with OLE
> >
> > If I link HBWIN   these functions don't works
> >
> > C:\oohg\OBJO1GH\TWORD.o:TWORD.c:(.data+0x178): undefined reference to
> > `HB_FUN_OLESETPROPERTY'
> > C:\oohg\OBJO1GH\TWORD.o:TWORD.c:(.data+0x3c8): undefined reference to
> > `HB_FUN_CREATEOLEOBJECT'
> > C:\oohg\OBJO1GH\TWORD.o:TWORD.c:(.data+0x3e8): undefined reference to
> > `HB_FUN_OLEGETPROPERTY'
> > C:\oohg\OBJO1GH\TWORD.o:TWORD.c:(.data+0x3f8): undefined reference to
> > `HB_FUN_OLEINVOKE'
> >
> >
> > Whats wrong in my code
> >
> > Bruno
> >
> >
> > 2009/6/15 Viktor Szakáts <harbour...@syenar.hu>
> >>>
> >>> function Main()
> >>>  local o := TOleAuto():New( CreateObject( "Word.Application" ):hObj )
> >>>  ? o:ClassName
> >>>
> >>> return nil
> >>>
> >>> gives
> >>>
> >>> Error BASE/1004  No exported method: HOBJ
> >>> Called from WIN_OLEAUTO:HOBJ(0)
> >>> Called from MAIN(3)
> >>>
> >>> What am I missing?
> >>
> >> You're mixing the legacy class interface with the
> >> legacy API call.
> >>
> >> Try either:
> >> - o := CreateObject( "Word.Application" ) // o will be win_oleauto class
> >> - o := TOleAuto():New( "Word.Application" ) // o will be TOleAuto class
> >>
> >> Or rather this:
> >> - o := win_oleCreateObject( "Word.Application" ) // o will be
> win_oleauto
> >> class
> >>
> >> I'll commit compatibility patch for this, pls
> >> try it because this will be a blind patch.
> >>
> >> Brgds,
> >> Viktor
> >>
> >> _______________________________________________
> >> Harbour mailing list
> >> Harbour@harbour-project.org
> >> http://lists.harbour-project.org/mailman/listinfo/harbour
> >
> >
> > _______________________________________________
> > Harbour mailing list
> > Harbour@harbour-project.org
> > http://lists.harbour-project.org/mailman/listinfo/harbour
> >
> >
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to