FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH versions 10.10 to 11.06 - Important changes
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FWH versions 10.10 to 11.06 - Important changes
Posted: Tue Sep 06, 2011 05:29 PM
Fix in fwh\source\function\olefuncs.prg:
----------------------------------------

Please replace the functions GetOleObject(), WinWordObj(), ExcelObj() and SunCalcObj() in your version of \fwh\source\function\olefuncs.prg with the following code:
Code (fw): Select all Collapse
//----------------------------------------------------------------------------//

function FWGetOleObject( cApp )

   local oObj

   TRY
      oObj  := GetActiveObject( cApp )
   CATCH
      TRY
         oObj  := CreateObject( cApp )
      CATCH
      END
   END

return oObj

//----------------------------------------------------------------------------//

function WinWordObj(); return FWGetOleObject( "Word.Application" )
function ExcelObj();   return FWGetOleObject( "Excel.Application" )
function SunCalcObj(); return FWGetOleObject( "com.sun.star.ServiceManager" )

//----------------------------------------------------------------------------//
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH versions 10.10 to 11.06 - Important changes
Posted: Wed Sep 07, 2011 12:49 PM

In the olefuncs fix, there is another important thing. Need to remove the old module from fiveh.lib or fivehx.lib and add the new olefuncs.obj module. The problem is not resolved till the old module is removed.

to do this:
tlib/lib utility to "-+olefuncs,ibj:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: FWH versions 10.10 to 11.06 - Important changes
Posted: Tue Sep 13, 2011 01:17 PM

Hi Antonio,

what are the required flags to recompile olefuncs.prg? Could you provide a small .bat to handle the whole process? Is there any special consideration if using bcc6.3?

TIA

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH versions 10.10 to 11.06 - Important changes
Posted: Tue Sep 13, 2011 02:35 PM

André,

Usual flags: /n /w /es2

It should work fine with that Borland version too :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: FWH versions 10.10 to 11.06 - Important changes
Posted: Tue Sep 13, 2011 04:32 PM

I was wondering about bcc parameters to generate obj:

c:\bcc63\bin\bcc32 -c -Ic:\bcc63\include;e:\hb3.0\include olefuncs.c is that correct?

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH versions 10.10 to 11.06 - Important changes
Posted: Tue Sep 13, 2011 05:45 PM

André,

Yes, that is fine :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion