bug in FWH 11.11

bug in FWH 11.11

Postby ukservice » Thu Dec 01, 2011 4:09 pm

Hello,

GetCurDir() is missing.

Thanks
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: bug in FWH 11.11

Postby ukservice » Thu Dec 01, 2011 4:28 pm

Also, pressing Alt into a Combobox erases it.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: bug in FWH 11.11

Postby Antonio Linares » Thu Dec 01, 2011 5:38 pm

John,

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

Code: Select all  Expand view
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42085
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: bug in FWH 11.11

Postby Antonio Linares » Thu Dec 01, 2011 5:44 pm

John,

This example is working fine:

johnc.prg
Code: Select all  Expand view
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42085
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: bug in FWH 11.11

Postby ukservice » Thu Dec 01, 2011 5: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
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: bug in FWH 11.11

Postby Antonio Linares » Thu Dec 01, 2011 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42085
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: bug in FWH 11.11

Postby ukservice » Thu Dec 01, 2011 7:33 pm

Antonio,

Thank you very much for quick and perfect support.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 115 guests