DLLCALL under Fivewin

Re: DLLCALL under Fivewin

Postby Antonio Linares » Mon Dec 26, 2022 9:17 am

Place it just before the final return:

Code: Select all  Expand view
#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: Select all  Expand view
HB_FUNC( EJECTVOLUME )
{
   BOOL bResult = EjectVolume( ... );

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

   hb_retl( bResult );
}
regards, saludos

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

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 74 guests