DLLCALL under Fivewin

User avatar
Antonio Linares
Site Admin
Posts: 42270
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: DLLCALL under Fivewin

Post by Antonio Linares »

Place it just before the final return:

Code: Select all | Expand

#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

HB_FUNC( EJECTVOLUME )
{
   BOOL bResult = EjectVolume( ... );

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

   hb_retl( bResult );
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply