FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PROBLEM WITH RESOURCES
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
PROBLEM WITH RESOURCES
Posted: Fri Jan 03, 2020 05:01 PM
I have a simply dialog made with resources


Test Source
Code (fw): Select all Collapse
#include "fivewin.ch"
function main()
Local oDlg
DEFINE DIALOG oDlg NAME "TEST" COLOR CLR_BLACK, RGB( 197,197,197)
ACTIVATE DIALOG oDlg CENTERED
return nil


The Resource


Code (fw): Select all Collapse
#define DS_MODALFRAME 0x80L
TEST DIALOG 18, 18, 190, 92
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Animation"
BEGIN
   CONTROL "", 101, "TAnimat", 0 | WS_CHILD | WS_VISIBLE , 30, 17, 129, 17
   PUSHBUTTON "&Ok", 102, 72, 67, 45, 14
END



and i have this error


Code (fw): Select all Collapse
Application
===========
   Path and name: C:\Work\Errori\animation\ANIMAT.Exe (32 bits)
   Size: 3,871,744 bytes
   Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20180217)
   FiveWin  version: FWH 19.12
   C compiler version: Borland/Embarcadero C++ 7.3 (32-bit)
   Windows version: 6.2, Build 9200 

   Time from start: 0 hours 0 mins 0 secs 
   Error occurred at: 01/03/20, 17:59:44
   Error description: Error FiveWin/3  Cannot create Dialog Box: 
                      Resource: TEST

Stack Calls
===========
   Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR( 717 )
   Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 306 )
   Called from: PRUEBA1.PRG => MAIN( 26 )



why what's is changed ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: PROBLEM WITH RESOURCES
Posted: Fri Jan 03, 2020 05:03 PM

Can you try with Harbour?

XHarbour from Fivetech is from 2018.

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: PROBLEM WITH RESOURCES
Posted: Fri Jan 03, 2020 05:28 PM
MOISES wrote:Can you try with Harbour?

XHarbour from Fivetech is from 2018.


No, it is not. It's from 14 Jun 2019. But very probably the problem is not the compiler.

EMG
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: PROBLEM WITH RESOURCES
Posted: Fri Jan 03, 2020 07:14 PM
Code (fw): Select all Collapse
#include "fivewin.ch"

function main()

   Local oDlg, oAnimate

   DEFINE DIALOG oDlg NAME "TEST" COLOR CLR_BLACK, RGB( 197,197,197)

   oAnimate = TAnimate():Redefine( 101, oDlg )

   ACTIVATE DIALOG oDlg CENTERED

return nil

/*
// SILVIO.RC using SysAnimate32 -> Look WIN32.PRG in \samples

#ifndef __64__
  1 24 ".\WinXP\WindowsXP.Manifest"
#endif

#ifdef __64__
   1 24 "WinXP/WindowsXP.Manifest64"
#endif

TEST DIALOG 180, 58, 190, 92
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Animation"
FONT 8, "MS Sans Serif"
{
 CONTROL "", 101, "SysAnimate32", 10 | WS_CHILD | WS_VISIBLE, 29, 16, 131, 34
 PUSHBUTTON "&Ok", 102, 72, 67, 45, 14
}
*/
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: PROBLEM WITH RESOURCES
Posted: Fri Jan 03, 2020 07:15 PM

Silvio,
For example:
I noticed that if an RC / RES is placed on an XBROWSE control and PRG is not defined, the same error occurs.

I noticed that you have a TAnimat control. Is it not the same problem?

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: PROBLEM WITH RESOURCES
Posted: Sat Jan 04, 2020 12:25 AM

No.
I have an oldest Tanimate control for create animation of Images
It is made by C5 and is the father of Banner class of C5
I saw if I create the button (pushbutton) it show the dialog
if I forget the redefine of Button the dialog not is showed
Before I can make show on screen any resources only call the dialog resource
Now it not run
I must define the control are on resource
why ?

but this tonight it run ...I not Know what this afternoon is happened !!!! :)

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion