PROBLEM WITH RESOURCES

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

PROBLEM WITH RESOURCES

Post by Silvio.Falconi »

I have a simply dialog made with resources


Test Source

Code: Select all

#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: Select all

#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: Select all

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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: PROBLEM WITH RESOURCES

Post by MOISES »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: PROBLEM WITH RESOURCES

Post by Enrico Maria Giordano »

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
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: PROBLEM WITH RESOURCES

Post by karinha »

Code: Select all

#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
MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: PROBLEM WITH RESOURCES

Post by MGA »

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

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: PROBLEM WITH RESOURCES

Post by Silvio.Falconi »

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 !!!! :)
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply