xhb.obj,oledlg.lib and version.lib seems to break somethiong in OLE object (tested with MSWord and MS EXCEL):
Object methods have numeric type instead of object and accessing them results on runtime error.
So code
- Code: Select all Expand view
- #INCLUDE "Fivewin.ch"
#translate Alert( <msg> [, <opt,...>] ) => MessageBox( 0, <msg>, "xHarbour OleDemo", 0 )
#define CRLF Chr( 13 ) + Chr( 10 )
PROCEDURE MAIN()
LOCAL oExcel, oAS
TRY
oExcel := GetActiveObject( "Excel.Application" )
CATCH
TRY
oExcel := CreateObject( "Excel.Application" )
CATCH
Alert( "ERROR! Excel not avialable. [" + Ole2TxtError()+ "]" )
RETURN
END
END
oExcel:WorkBooks:Add()
return
Breaks with runtime error:
Error description: Error BASE/1004 Class: 'NUMERIC' has no exported method: ADD
Args:
[ 1] = N 1583492
Stack Calls
===========
Called from: => ADD(0)
Called from: Test_OLE.prg => MAIN(25)
Should we still link in xhb.obj,oledlg.lib and version.lib with FWH 9.09 ?
Taavi.