New FTDN September/Septiembre 2012 (FWH 12.09)

New FTDN September/Septiembre 2012 (FWH 12.09)

Postby Antonio Linares » Thu Oct 11, 2012 12:38 pm

September 2012
==============

* Fix: Required change in Class TRBtn to destroy ::hBack if it is not the same as
the used by its container:

viewtopic.php?p=134977#p134977

* Fix: Class TExplorerbar Method Redefine() missing initialization for nVirtualTop
and nVirtualHeight. samples/explbar2.prg was failing. Now it is ok.

* Fix: Class TExplorerBar Method CheckScroll() was not properly calculating the
represented size in the scrollbar. Now it is ok:

viewtopic.php?p=135111#p135111

* Fix: Class TRBtn Method Destroy(), DATA hBack was not properly destroyed when its
container was not TRBGroup. Now it is ok:

viewtopic.php?p=134977#p134977

* Fix: samples\fivedbu.prg modify structure uses the original filename instead of the
alias. Reported by Colin Haig.

* Enhancement: Print Preview (rpreview.prg) has greatly enhanced, thanks to Anser:

If the user wants to create a PDF from the Report preview and MS-Word is not available on the PC, it would use FWH methods
ie FWSavePreviewToPDF().

The new OpenOffice ToWordDocViaWriter() is used only If MS-Word is not installed and the user wants to save the report preview
as a Word doc file, then it would make use of the OpenOffice (if available), to achieve the same

* Enhancement: Class TPrinter Method Setup() returns a logical value so you can use it
this way:

if ! oPrinter:Setup()
return nil
endif

viewtopic.php?p=135916#p135916
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41209
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby rhlawek » Thu Oct 11, 2012 7:00 pm

Using MSVC 2010

Two items:

1) Will you be releasing 12.09 for 64 bit to keep things in sync?

2) I just upgraded my test machine frmo 12.08 to 12.09 and I now get the following unresolved externals. When I rolled back from 12.09 to 12.08 and built this file the unresolved externals error is not present, but rolling forward to 12.09 brings the error back.

viewer.obj : error LNK2001: unresolved external symbol _HB_FUN_SETDLGGRADIENT
viewer.obj : error LNK2001: unresolved external symbol _HB_FUN_DRAWTILED
FiveH32.lib(WINDOW.obj) : error LNK2001: unresolved external symbol _HB_FUN_XFREEPROC
FiveH32.lib(INI.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(PRV2PDF.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(TMETAFIL.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(SHELLAPI.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(GETTASKS.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(FILENAME.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(LONGNAM2.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(WINDOW.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(IMAGE.obj) : error LNK2019: unresolved external symbol _HB_FUN_FREELIBRARY referenced in function _HB_FUN_FIISTRANSPARENT
FiveH32.lib(DIALOG.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(HARBOUR.obj) : error LNK2001: unresolved external symbol _HB_FUN_FREELIBRARY
FiveH32.lib(INI.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(PRV2PDF.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(TMETAFIL.obj) : error LNK2019: unresolved external symbol _HB_FUN_LOADLIBRARY referenced in function _HB_FUN_TMETAFILE_SETFILE
FiveH32.lib(SHELLAPI.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(GETTASKS.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(FILENAME.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(LONGNAM2.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(HELP32.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(WINDOW.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(IMAGE.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(DIALOG.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY
FiveH32.lib(HARBOUR.obj) : error LNK2001: unresolved external symbol _HB_FUN_LOADLIBRARY

Robb
User avatar
rhlawek
 
Posts: 193
Joined: Sun Jul 22, 2012 7:01 pm

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby Antonio Linares » Thu Oct 11, 2012 8:45 pm

Please add these functions to your main PRG:

Code: Select all  Expand view
#pragma BEGINDUMP

#include <hbapi.h>
#include <windows.h>

HB_FUNC( LOADLIBRARY )
{
   hb_retnl( ( HB_LONG ) LoadLibrary( hb_parc( 1 ) ) );
}

HB_FUNC( FREELIBRARY )
{
   hb_retl( FreeLibrary( ( HMODULE ) hb_parnl( 1 ) ) );
}

#pragma ENDDUMP
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41209
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby rhlawek » Fri Oct 12, 2012 12:30 am

Thank you, that cleared all but these three:

viewer.obj : error LNK2001: unresolved external symbol _HB_FUN_SETDLGGRADIENT
viewer.obj : error LNK2001: unresolved external symbol _HB_FUN_DRAWTILED
FiveH32.lib(WINDOW.obj) : error LNK2001: unresolved external symbol _HB_FUN_XFREEPROC

Roibb
User avatar
rhlawek
 
Posts: 193
Joined: Sun Jul 22, 2012 7:01 pm

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby Antonio Linares » Fri Oct 12, 2012 3:50 am

Robb, Tim,

I have emailed you the right libs, please check them, thanks :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41209
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby ShumingWang » Fri Oct 12, 2012 7:56 am

Hope enhance tgantt class .
Regards!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 460
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby TimStone » Fri Oct 12, 2012 4:53 pm

Thank you. The new libs are now working correctly and the build is successful.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2897
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby rhlawek » Wed Oct 17, 2012 5:00 pm

These libraries worked for me as well.

Any word on the 64 bit 12.09 build?
User avatar
rhlawek
 
Posts: 193
Joined: Sun Jul 22, 2012 7:01 pm

Solved

Postby Maurizio » Thu Oct 25, 2012 8:58 am

Antonio ,

try this sample with harbour ( with xHarbour it works)
when you press exit button the programm crash

Maurizio

I have solved with :


#ifdef __HARBOUR__
#command QUIT => ( PostQuitMessage( 0 ), __Quit() )
#endif


Code: Select all  Expand view
#include "FiveWin.ch"
#include "metro.ch"

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

function Main()

   local oMetro

   DEFINE METRO oMetro ;
      TITLE "My FWH Metro app" ;
      BACKGROUND "..\bitmaps\hires\earth.bmp"
     

   DEFINE METROBUTTON OF oMetro ;
      PROMPT "Exit" COLOR CLR_WHITE, RGB( 2, 174, 224 ) ;    
      IMAGE "..\bitmaps\metro\exit.bmp" ;
      ACTION __quit()




   ACTIVATE METRO oMetro

return nil  
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby Antonio Linares » Thu Oct 25, 2012 12:18 pm

Maurizio,

Yes, thats right as QUIT can not be called from Windows, instead:

PostQuitMessage( 0 )
__Quit()

has to be used. Thanks for commenting it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41209
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby Maurizio » Thu Oct 25, 2012 2:47 pm

Antonio,

some function are missing in fiveh32.lib or fivehc.lib

aggiorna.obj : error LNK2001: simbolo esterno _HB_FUN_TMETROPANEL non risolto
aggiorna.obj : error LNK2001: simbolo esterno _HB_FUN_SETDLGGRADIENT non risolto
XBROWSE.obj : error LNK2001: simbolo esterno _HB_FUN_FW_VALTOEXP non risolto
fiveh32.lib(WINDOW.obj) : error LNK2001: simbolo esterno _HB_FUN_XFREEPROC non risolto


Regards Maurizio
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: New FTDN September/Septiembre 2012 (FWH 12.09)

Postby Antonio Linares » Thu Oct 25, 2012 3:06 pm

Mauruzio,

Yes, Tim Stone noticed it but we have not published the revised ones.

We email them to you
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41209
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to WhatsNew / Novedades

Who is online

Users browsing this forum: No registered users and 8 guests