FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DLLCALL under Fivewin
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: DLLCALL under Fivewin

Posted: Mon Dec 26, 2022 09:17 AM
Place it just before the final return:
Code (fw): Select all Collapse
#include <windows.h>

...

if( ! bResult )
   MessageBox( 0, "error", "can't ejec't the volume", 0 );

return bResult;
I would suggest to write a Harbour wrapper for it and there you can issue the warning or simply generate a Harbour error:
Code (fw): Select all Collapse
HB_FUNC( EJECTVOLUME )
{
   BOOL bResult = EjectVolume( ... );

   if( ! bResult )
      MessageBox( ... );

   hb_retl( bResult );
}
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion