function Main()
local cFolder := Alltrim(CurDrive()) + ":\" + Alltrim(CurDir())
MsgInfo( cFolder )
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
#include <hbapifs.h>
HB_FUNC( CURDRIVE )
{
char szCurDrive[ 1 ];
const char * szDrive;
szCurDrive[ 0 ] = ( ( char ) hb_fsCurDrv() ) + 'A';
hb_retclen( szCurDrive, 1 );
}
#pragma ENDDUMP
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 91 guests