RC dialogs and bitmaps disapearing
RC dialogs and bitmaps disapearing
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 =
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 =
-
- Posts: 78
- Joined: Fri Dec 02, 2005 6:55 pm
- Location: brazil
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
NoAntonio Linares wrote:Mauricio,
Are you using Borland controls ?
http://www.farmacia.com.br/test.zipAntonio Linares wrote:Could you provide a url to download your PRG and RC as a ZIP file ? Thanks.
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.
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Mauricio,concentra wrote:NoAntonio Linares wrote:Mauricio,
Are you using Borland controls ?http://www.farmacia.com.br/test.zipAntonio Linares wrote:Could you provide a url to download your PRG and RC as a ZIP file ? Thanks.
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: