hi Antonio, return bResult; YES :D next is to write the Harbour wrapper for it and then from there you can check the returned value and show a msg if desired, though usually it is a better practice to leave the developer warn about it in case of an error this is my HB_FUNC() Question b...
next is to write the Harbour wrapper for it and then from there you can check the returned value and show a msg if desired, though usually it is a better practice to leave the developer warn about it in case of an error
hi Enricon You have to fix the function EjectVolume() as it is not well written. while i had Problem with my DLLCALL Version i have search and found this Version in HMG Forum https://www.hmgforum.com/viewtopic.php?t=4524 but as i´m not a "C" Programmer ...
hi Antonio, YES, this new CODE compile without Error,thx :) so i try "more" and use what chatGPT have answer HB_FUNC( LOCKVOLUME){ hb_retl( LockVolume( ( void * ) hb_parnll( 1 ) ) );}HB_FUNC( DISMOUNTVOLUME ){ hb_retl( ...
i have change CODE as you say but still got (same) Warnings Warning W8004 FWEJECT.prg 190: 'fAutoEject' is assigned a value that is never used in function EjectVolume Warning W8004 FWEJECT.prg 190: 'fRemoveSafely' is assigned a value that is never used in function EjectVolume You are assigning that...
hi Enrico, Try: BOOL fRemoveSafely; // = FALSE;BOOL fAutoEject; // = FALSE; hb_retl( EjectVolume( ( TCHAR ) *szDrive ) ); i have change CODE as you say but still got (same) Warnings Warning W8004 FWEJECT.prg 190: 'fAutoEject' is assigned a value that is never used in function...
hi Antonio, You have to write the Harbour wrappers for those C functions. In example for function BOOL DismountVolume( HANDLE hVolume ): i have done what you told me and add CODE HB_FUNC( DISMOUNTVOLUME ) { hb_retl( DismountVolume( hb_parnll( 1 ) ) );...