RC dialogs and bitmaps disapearing

RC dialogs and bitmaps disapearing

Postby concentra » Tue Dec 06, 2005 12:37 pm

I have a problem with a RC file linked with xHarbour.
The problem only occurs in xHarbour, in Clipper it´s OK.
It works fine for sometime and, suddenly, when something is changed in the RC, I tget the error:

"Error FiveWin/3 Cannot create Dialog Box"

I am sure the dialog exists in the RC.
The RC has many dialogs and if I remove one, any one, the app runs fine
again.
Sometimes, if I change the dialog name it runs OK, sometimes not.
And also some bitmaps disapear and if I change the bitmap name, sometimes it returns.
I am using FW May 2005 build.
I put here a very small program that has the problem.
Can anyone confirm ( or not ) the problem ?

Mauricio Faria
Concentra Informatica
-------------------------------------

// The PRG

#INCLUDE "FIVEWIN.CH"
FUNCTION MAIN()
DEFINE DIALOG oDLG RESOURCE "PRE_IMP"
ACTIVATE DIALOG oDLG
RETURN NIL

--------------------------------------

// The RC

PRE_IMP DIALOG 80, 38, 360, 286
BEGIN
END

CAD_CONFIG DIALOG 6, 15, 286, 219
BEGIN
END
CAD_CONTATOS DIALOG 6, 15, 203, 69
BEGIN
END
CAD_EXTRA DIALOG 119, 91, 293, 191
BEGIN
END
CAD_FONES DIALOG 82, 58, 242, 58
BEGIN
END
CAD_FONESVAL DIALOG 87, 46, 317, 106
BEGIN
END
CAD_MENSALIDADE DIALOG 90, 35, 312, 234
BEGIN
END
CAD_MODI DIALOG 6, 15, 410, 278
BEGIN
END
CAD_OBSERVACAO DIALOG 6, 15, 390, 203
BEGIN
END
CAD_ORCAMENTOS DIALOG 54, 40, 325, 227
BEGIN
END
CAD_OUTRO_FONE DIALOG 7, 18, 353, 134
BEGIN
END
CAD_SENHA DIALOG 41, 107, 350, 118
BEGIN
END
CAD_SOLICIT DIALOG 6, 15, 498, 366
BEGIN
END
CAD_TREINA DIALOG 6, 15, 334, 87
BEGIN
END
CAD_VERSOES DIALOG 6, 15, 336, 96
BEGIN
END
DLG_ENVELOPE DIALOG 104, 43, 334, 104
BEGIN
END
DLG_FILTRO DIALOG 156, 46, 161, 142
BEGIN
END
DLG_INDEX DIALOG 6, 15, 329, 120
BEGIN
END
DLGAGUARDE DIALOG 77, 45, 105, 30
BEGIN
END
DLGDATAEST DIALOG 27, 29, 269, 86
BEGIN
END
DLGDATACLIEST DIALOG 27, 29, 269, 152
BEGIN
END
DLGFILREC DIALOG 119, 211, 170, 100
BEGIN
END
DLGINDEXAULTATEND DIALOG 77, 54, 207, 66
BEGIN
END
DLGPENDENC DIALOG 119, 91, 248, 173
BEGIN
END
IMP_NOTA DIALOG 27, 29, 259, 117
BEGIN
END
IMP_SOLICIT DIALOG 27, 29, 289, 73
BEGIN
END
PRINT DIALOG 76, 39, 215, 81
BEGIN
END
PRINT_PROC DIALOG 7, 21, 194, 82
BEGIN
END
PREVIEW_PROC DIALOG 6, 17, 194, 82
BEGIN
END
CAD_ATEDESCR DIALOG 6, 15, 203, 69
BEGIN
END
CAD_ATENDIMENTOS DIALOG 21, 25, 534, 391
BEGIN
END
CAD_CLIENTES DIALOG 62, 23, 437, 299
BEGIN
END

------------------------------------------------

// The xBp

CINI =
C_OUTPUTFOLDER =
DEFFILE =
INCLUDEFOLDERS =
LAUTORUN = .T.
LDEBUG = .F.
LGUI = .T.
LIBFOLDERS =
LMT = .F.
LPRG_CLASSICDEBUG = .F.
LPRG_DEBUG = .F.
LUSEDLL = .F.
MAPFILE =
MYC_FLAGS =
MYDEFINES =
MYLINK_FLAGS =
MYPRG_FLAGS =
MYRC_FLAGS =
MYSLY_FLAGS =
OUTPUTFOLDER =
PRG_OUTPUTFOLDER =
RC_OUTPUTFOLDER =
RUNARGUMENTS =
SLY_OUTPUTFOLDER =
TARGETFOLDER =

[C:\LIXO\test.prg]
MYC_FLAGS =
MYDEFINES =
MYPRG_FLAGS =

[C:\LIXO\test.rc]
MYDEFINES =
MYRC_FLAGS =
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Postby mauricioajordao » Tue Dec 06, 2005 1:00 pm

fala xará

como esta o arquivo de compilaçao o BAT


mauricio (RJ)
mauricioajordao
 
Posts: 78
Joined: Fri Dec 02, 2005 6:55 pm
Location: brazil

Postby Antonio Linares » Tue Dec 06, 2005 1:09 pm

Mauricio,

Are you using Borland controls ?

Could you provide a url to download your PRG and RC as a ZIP file ? Thanks.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby concentra » Tue Dec 06, 2005 4:08 pm

Antonio Linares wrote:Mauricio,
Are you using Borland controls ?
No
Antonio Linares wrote:Could you provide a url to download your PRG and RC as a ZIP file ? Thanks.
http://www.farmacia.com.br/test.zip
I forgot to say I am using xHarbour Builder from xHarbour.com.
I put in the zip the .log .map .ppo and .res generated files.

[[]] Mauricio
Last edited by concentra on Tue Dec 06, 2005 4:17 pm, edited 1 time in total.
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Postby concentra » Tue Dec 06, 2005 4:10 pm

mauricioajordao wrote:fala xará
como esta o arquivo de compilaçao o BAT
mauricio (RJ)

Diga lá!
Esqueci de dizer que estou usando xHarbour Builder da xHarbour.com.
O xBp está no corpo da mensagem.
No zip que eu citei acima tem um .log que são os comandos executados.

[[]] Mauricio
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Postby Richard Chidiak » Tue Dec 06, 2005 4:33 pm

concentra wrote:
Antonio Linares wrote:Mauricio,
Are you using Borland controls ?
No
Antonio Linares wrote:Could you provide a url to download your PRG and RC as a ZIP file ? Thanks.
http://www.farmacia.com.br/test.zip
I forgot to say I am using xHarbour Builder from xHarbour.com.
I put in the zip the .log .map .ppo and .res generated files.

[[]] Mauricio


Mauricio,

Do you have 1 rc file or more ?

Xharbour builder does not handle properly several rc files. I have been through this one before.

You have to specify only one rc file

This is a working sample

Create a rc file named xxx.rc

Inside add all the other rc files like this


#include "CBATIMAN.rc"
#include "CBATIMA.rc"
#include "CBATIDEV.rc"
#include "CBATI.rc"
#include "CBATICOM.rc"
#include "CBATISAV.rc"
#include "CBATIVEH.rc"
#include "CBATIPAY.rc"


Richard
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Tue Dec 06, 2005 9:36 pm

Mauricio,

The dialogs are empty ? No controls on them ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby concentra » Wed Dec 07, 2005 11:30 am

Antonio Linares wrote:Mauricio,

The dialogs are empty ? No controls on them ?

Yes.
I tried to reproduce the problem with the simplest example I could build, and that was with empty dialogs. If I fill the dialogs with controls the result is the same.

[[]] Maurício Faria
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil

Postby Antonio Linares » Wed Dec 07, 2005 12:40 pm

Mauricio,

The sample you have provided works ok with FWH and Borland.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby concentra » Wed Dec 07, 2005 12:46 pm

Antonio Linares wrote:Mauricio,

The sample you have provided works ok with FWH and Borland.

Ok, thanks for your attention.
With Clipper it works Ok also.
Seems to be a xHarbour.com Builder problem. Will post another message in the xHarbour.com news.

[[]] Maurício Faria
User avatar
concentra
 
Posts: 124
Joined: Mon Nov 14, 2005 10:15 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 43 guests