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