FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Program creates a Log File
Posts: 130
Joined: Sat Oct 08, 2005 09:38 PM
Program creates a Log File
Posted: Mon Jun 19, 2017 12:50 PM

My program is creating a log file as follows. What's wrong please?

19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_LAST" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_PRINTER2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXCEL2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EYE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_BROWSE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXIT2" "invalid resource" = "invalid resource"

Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Program creates a Log File
Posted: Mon Jun 19, 2017 01:42 PM
Birol

Somewhere in your program you are calling these icons on your BtnBmps and those resources do not exist on File or not burned into your Executable. I would use a File Find utility and have it search your .Prgs for the Resource Calls in your program and verify the resources actually exist in your .Exe or .Res file.

Rick Lipkin



19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_LAST" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_PRINTER2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXCEL2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EYE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_BROWSE2" "invalid resource" = "invalid resource"
19/06/2017 14:47:57: WNDREADPALBMPEX( 694 ) uBmp = "BTN_EXIT2" "invalid resource" = "invalid resource"
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: Program creates a Log File
Posted: Mon Jun 19, 2017 02:28 PM

Buen dia, lo mismo me sucede pero desde que empece a usar HB, antes usana xHb y nada de esto, parece HB es mas "detallista" y verifica hasta la marca del teclado que uno usa(chiste), gracias...saludos... :shock:

Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 130
Joined: Sat Oct 08, 2005 09:38 PM
Re: Program creates a Log File
Posted: Mon Jun 19, 2017 03:33 PM

Rick, these buttons are burned into the executable and I am calling them from many different places and many prgs.
This happens sometimes, not always,
Anyway, thanks for your reply (both)

Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Program creates a Log File
Posted: Mon Jun 19, 2017 05:01 PM

These warnings are written into a log file when the program tries to use a resource for bitmap but resource by that name is not in the .res file linked to the exe. This is intended to help the programmer to fix the issue.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion