FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour bug in FWH 11.11
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
bug in FWH 11.11
Posted: Thu Dec 01, 2011 04:09 PM

Hello,

GetCurDir() is missing.

Thanks

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: bug in FWH 11.11
Posted: Thu Dec 01, 2011 04:28 PM

Also, pressing Alt into a Combobox erases it.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: bug in FWH 11.11
Posted: Thu Dec 01, 2011 05:38 PM
John,

I would not call it a bug, but a missing source code :-)

Code (fw): Select all Collapse
HB_FUNC( GETCURDIR )
{
   DWORD dwLen = GetCurrentDirectory( 0, NULL );
   
   if( dwLen )
   {
      char * pBuffer = ( char * ) hb_xgrab( dwLen );
      
      GetCurrentDirectory( dwLen, pBuffer );
      
      hb_retc( pBuffer );
      hb_xfree( pBuffer );
   }
   else
      hb_retc( "" );
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: bug in FWH 11.11
Posted: Thu Dec 01, 2011 05:44 PM
John,

This example is working fine:

johnc.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oDlg, cItem

   DEFINE DIALOG oDlg
   
   @ 1, 1 COMBOBOX cItem ITEMS { "One", "Two", "Three" }
   
   @ 3, 3 BUTTON "Ok" ACTION oDlg:End()

   ACTIVATE DIALOG oDlg CENTERED

return nil


have you downloaded the revised FWH 11.11 that was published yesterday ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: bug in FWH 11.11
Posted: Thu Dec 01, 2011 05:55 PM

Antonio,

Now combos are working fine.

Regaring getcurdir, why FWH does not use Harbour´s curdir()?. What´s the difference?.

Thanks.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: bug in FWH 11.11
Posted: Thu Dec 01, 2011 06:30 PM

John,

Basically both functions are the same: just a wrapper to the Windows API function GetCurrentDirectory()

We provide it for backwards compatibility

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: bug in FWH 11.11
Posted: Thu Dec 01, 2011 07:33 PM

Antonio,

Thank you very much for quick and perfect support.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82

Continue the discussion