Search found 1527 matches: warning

Return to advanced search

Re: DLLCALL under Fivewin

... "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: HB_FUNC( EJECTVOLUME ){   BOOL bResult = EjectVolume( ... );   if( ! bResult )  ...
by Antonio Linares
Mon Dec 26, 2022 9:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2640

Re: different Warning using BCC7 32 Bit / MSVC 64 Bit

Jimmy wrote:Variable fRemoveSafely and fAutoEject are IMHO "not need" ... but how "without" :?:


Yes, they are not needed because they are not used.
by Enrico Maria Giordano
Thu Dec 15, 2022 4:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: different Warning using BCC7 32 Bit / MSVC 64 Bit
Replies: 6
Views: 427

Re: different Warning using BCC7 32 Bit / MSVC 64 Bit

hi Antonio, Do you mean this code ? Yes, this CODE give me under BCC7 32 Bit this Warnings Warning W8004 TEST1.prg 147: 'fAutoEject' is assigned a value that is never used in function EjectVolume Warning W8004 TEST1.prg 147: 'fRemoveSafely' is assigned a value that ...
by Jimmy
Thu Dec 15, 2022 3:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: different Warning using BCC7 32 Bit / MSVC 64 Bit
Replies: 6
Views: 427

Re: different Warning using BCC7 32 Bit / MSVC 64 Bit

Dear Jimmy, Do you mean this code ? // test programrequest hb_gt_win_defaultPROC MAIN( cDriveLetter )    hb_Default( @cDriveLetter, "G:" )    IF EjectRemovable( cDriveLetter )        ? "The drive " + cDriveLetter + &...
by Antonio Linares
Thu Dec 15, 2022 3:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: different Warning using BCC7 32 Bit / MSVC 64 Bit
Replies: 6
Views: 427

Re: different Warning using BCC7 32 Bit / MSVC 64 Bit

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 i have no Idea how to...
by Jimmy
Thu Dec 15, 2022 3:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: different Warning using BCC7 32 Bit / MSVC 64 Bit
Replies: 6
Views: 427

Re: different Warning using BCC7 32 Bit / MSVC 64 Bit

You have to fix the function EjectVolume() as it is not well written. What this is supposed to mean?   if( LockVolume(hVolume) && DismountVolume(hVolume) )     fRemoveSafely = TRUE;   {     if (PreventRemovalOfVolu...
by Enrico Maria Giordano
Thu Dec 15, 2022 2:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: different Warning using BCC7 32 Bit / MSVC 64 Bit
Replies: 6
Views: 427

different Warning using BCC7 32 Bit / MSVC 64 Bit

hi, both Version "seems" to run so far but i got (different) Warnings bcc7 32 Bit Warning W8004 .\\HB_FUNC.PRG 132: 'fAutoEject' is assigned a value that is never used in function EjectVolume Warning W8004 .\\HB_FUNC.PRG 132: 'fRemoveSafely' is assigned ...
by Jimmy
Thu Dec 15, 2022 1:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: different Warning using BCC7 32 Bit / MSVC 64 Bit
Replies: 6
Views: 427

Re: DLLCALL under Fivewin

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 ...
by Enrico Maria Giordano
Fri Dec 09, 2022 2:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2640

Re: DLLCALL under Fivewin

... 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 EjectVolume Warning W8004 FWEJECT.prg 190: 'fRemoveSafely' ...
by Jimmy
Fri Dec 09, 2022 1:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2640

Re: DLLCALL under Fivewin

I just asked chatGPT to write them :-) This is the result. Warning: chatGPT fails so you have to check its implementation: HB_FUNC(EJECTVOLUME){   return EjectVolume(hb_parc(1));}HB_FUNC(OPENVOLUME){  ...
by Antonio Linares
Thu Dec 08, 2022 8:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2640

Re: DLLCALL under Fivewin

how to fix there Warnings Warning W8004 FWEJECT.prg 192: 'fAutoEject' is assigned a value that is never used in function EjectVolume Warning W8004 FWEJECT.prg 192: 'fRemoveSafely' is assigned a value that is never used in function ...
by Enrico Maria Giordano
Thu Dec 08, 2022 7:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2640

Re: DLLCALL under Fivewin

... *.PRG what i want : call each BOOL Function from PRG so i can display a Message after each Step instead of only OK or FAIL --- how to fix there Warnings Warning W8004 FWEJECT.prg 192: 'fAutoEject' is assigned a value that is never used in function EjectVolume Warning W8004 FWEJECT.prg 192: 'fRemoveSafely' ...
by Jimmy
Thu Dec 08, 2022 6:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2640

Re: DLLCALL under Fivewin

hi Enrico.
Enrico Maria Giordano wrote:You should work with warnings activated. The correct way is:

is it to use hbmk.hbm with
Code: Select all  Expand view
-w1 -es2 

for "smallest" Warning
by Jimmy
Mon Dec 05, 2022 3:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2640

Error E2140

...  if (bRelease && hModule)      FreeLibrary (hModule);}  i try to change Position but than all CODE behind does get Warning ... any Idea how i can change it :?:
by Jimmy
Fri Dec 02, 2022 12:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error E2140
Replies: 2
Views: 218

Help with Wrapper libXL

... Estos son los errores de compilación: Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. C:\fivedit\Libxlfnc.c: Warning W8069 d:\\users\\jose\\desktop\\libxl-hbr\\source\\Libxlfnc.prg 112: Nonportable pointer conversion in function HB_FUN_XLBOOKSAVERAW Warning ...
by jose_murugosa
Fri Nov 25, 2022 3:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with Wrapper libXL
Replies: 1
Views: 286
PreviousNext

Return to advanced search

cron