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