FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CreateDlgError and ResEd Resource Editor (Solved)
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: CreateDlgError and ResEd Resource Editor
Posted: Mon Jan 05, 2009 08:59 AM
Dear Fraxzi,

This is my project properties screen, Is it OK ?



I have found that the xMate is not adding a particular BMP and a DIALOG (created with the ResEd) to the EXE. Another amazing thing is that the .RES generated by xMate (PellesC PORC.EXE) contains both the above said BMP and DIALOG. I wonder what is going wrong ?.

Any hint regarding the linking of .RES file to the EXE

Regards

Anser
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: CreateDlgError and ResEd Resource Editor
Posted: Mon Jan 05, 2009 09:00 AM

Dear Anser,

I'll wait so we can work this out.

Regards,

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: CreateDlgError and ResEd Resource Editor
Posted: Mon Jan 05, 2009 09:08 AM
Looks OK with me...

Here's mine.









Anything else are default.


I have found that the xMate is not adding a particular BMP and a DIALOG (created with the ResEd) to the EXE. Another amazing thing is that the .RES generated by xMate (PellesC PORC.EXE) contains both the above said BMP and DIALOG. I wonder what is going wrong ?.

Any hint regarding the linking of .RES file to the EXE


The porc.exe will add .bmp to .res from compiling .rc as we know it. maybe your <file>.rc is not the same filename as you main <file>.prg ?


Regards,
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: CreateDlgError and ResEd Resource Editor
Posted: Mon Jan 05, 2009 10:40 AM
Dear Fraxzi,

I am not able to recreate the same problem with another test project using xMate. The test project which I created to show you is working fine. :-)

Anyway in my original project the problem is not yet resolved :-)

Maybe your <file>.rc is not the same filename as you main <file>.prg ?

I re-checked it. But some of the images from the .RC file is getting displayed. As I said earlier, the only problem is with a 32 bit BMP and a dialog created using ResEd. When I check the .EXE with PellesC, only the above said resources are missing in the .EXE

I am going to delete the project file and re-create and test. Shall update you on this.

Screen snapshot of the AlphaBMP file World.Bmp (C:\FWH\BitMaps\AlphaBmp\World.Bmp) displayed on a ButtonBMP. folder The left hand side button is from disk file and the right hand side button is from resource file.


Regards

Anser
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: CreateDlgError and ResEd Resource Editor
Posted: Mon Jan 05, 2009 11:12 AM
Dear Fraxzi,

Problem solved. I deleted the xMate Project and re-created it.
xMate will create certain folders by default in our project folder. xMate author has adviced not to delete these folders and has asked to leave as it is.

The folders created by xMate in our project directory are :-
Backup
Bin
Debug
Include
Lib
Obj
Resource
Source

I don't know how it happened, I found a .RES file copied inside the Resource folder and it was that .RES file getting linked to my EXE :-) . I understand that if .RES file exists in the RESOURCE folder then xMate will link that .RES file with the EXE and ignores the .RES file compiled and generated in the project folder. I deleted the .RES file from the folder RESOURCE and everything worked as expected.

Anyway it is a good lesson. I am writing it down here so that it may be useful for beginners like me :-) .

Thanks for your effort.

Regards

Anser
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: CreateDlgError and ResEd Resource Editor (Solved)
Posted: Tue Jan 06, 2009 12:19 AM
Dear Anser,

I'm glad you did. Maybe xMate uses the first .res file found within the project's directory... :-)

Anyway, that was a good experienced.


But the issue on bottonbmp on alphachannel has to be resolved..... FWH811 is not displaying the 32bpp alpha but have a look at this
great contribution http://www.fivewin.com.br/exibedicas.asp?id=924

Here's a good results:


Regards,
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: CreateDlgError and ResEd Resource Editor (Solved)
Posted: Tue Jan 06, 2009 04:09 AM
Dear Fraxzi,

FWH811 is not displaying the 32bpp alpha but have a look at this
great contribution http://www.fivewin.com.br/exibedicas.asp?id=924


This control is able to display AlphaChannels. Great

Regards

Anser

Continue the discussion