FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Pelles C question
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Pelles C question
Posted: Mon Dec 10, 2012 02:04 PM

Hi,

I'm thinking to move from Workshop to Pelles C to edit my recource-files, because the running on 64bit problem.
If I open a .RC-file in Pelles C, I just see the text-file.
I have to open the .RES file to be able tho modify/add recource.
In workshop I can open the .RC and add/modify resources. Do I do something wring, or is this correct?

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Pelles C question
Posted: Mon Dec 10, 2012 02:13 PM

Marc

I ( reluctantly ) use Resedit because I so much like Borland Resource Workshop. I am not much of a 'pallet' person when it comes to choosing my options... but I have learned to deal with the interface.

Resedit does a lot more than BRW especially when it comes to importing alpha bitmaps ( 24bit only ).

There is a 32 and 64 bit option and you will have to deal with a few header .ch files in your .rc's.

With that said .. Resedit has been a good solution for me especially since I do not want to download the whole C compiler just to get the resource editor.

http://www.resedit.net/

Rick Lipkin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Pelles C question
Posted: Mon Dec 10, 2012 03:35 PM

Rick,

how do you clone a dialog using ResEdit?

EMG

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Pelles C question
Posted: Mon Dec 10, 2012 04:30 PM

Enrico

The answer is a bit 'brutal' .. I copy a similar .rc to the new name .. use a text editor to change the dialog name. If the .rc is from BRW .. I add the following headers to the beginning of the file.

include <windows.h>

include <commctrl.h>

include <richedit.h>

include "resource.h"

The solution is kinda 'ugly' .. :cry:

Rick Lipkin

Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Pelles C question
Posted: Mon Dec 10, 2012 05:06 PM

exactamente como lo hago yo, por que resedit falla en algunas cosas como el copiado ya sea de dialogos o controles entre dialogos.
lo mas adecuado ha sido copiarlo directamente desde el rc con un edito de texto. por lo demas un gran producto, ademas en 32 y 64 bits.

salu2
carlos vargas

:-)

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Pelles C question
Posted: Mon Dec 10, 2012 05:45 PM

I reported more than once this and other limitations to the author. Try to make a report yourself so the author might react.

EMG

Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Pelles C question
Posted: Mon Dec 10, 2012 07:39 PM

Did you try open the RC file with Pelles and save as RES?

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: Pelles C question
Posted: Tue Dec 11, 2012 02:06 AM

En el Pelles c puedes usar tanto .res como .rc, copiar o duplicar una dlg o cualquier otro recurso es tan simple como copiar y pegar comunmente y tambien trabaja en 32 y 64 bits, para mi lo mas sencillo, rapido y poderoso de los gratuitos.saludos... :shock:

http://www.pellesc.de/index.php?page=downloadlang=en

&

Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Pelles C question
Posted: Tue Dec 11, 2012 07:49 AM
Hi,

If I want to open my existing .RC-file with ResEdit I get this error on this line:
Line 319: Character string expected.
Code (fw): Select all Collapse
A1 ICON   c:\fwh\projects\easyfact\prg\icons\easyftAL.ico


When I open the .RES file, there is no problem.

I never used a res-file before. I always modified the .RC-file and compiled it with BCC to a .RES file.
I find that very nice, because the .RC is a text-file, and I sometime edit the .RC file directly when I want ex. copy a existing Dialog to a simular one.

If I save the file directly to a .RES-file, does this mean I don't have to compile it anymore?


I try also to open the .RC file with Pelles C , and trid to save it as a .RES file in the hope that than I can edit the dialogs,and don't have a
text-file in the Pelles editor, but then I get a 'Access violation' error in module 'POIDE.EXE'.
Is it not possible to open the .RC file, and edit the dialogs vusualy, and not as a text-file in Pelles?
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Pelles C question
Posted: Tue Dec 11, 2012 09:23 AM

Marc

I use pelles-c for my resources and i have no problem with it

I never use res file but rc as we used in brw, and it is working OK.

Why can't you open the rc with pelles-c ide ?

check you're using the ide "C:\Program Files (x86)\PellesC\Bin\poide.exe"

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: Pelles C question
Posted: Tue Dec 11, 2012 09:41 AM

The Pelles C have support to copy/paste dialogs, images and others....

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Pelles C question
Posted: Tue Dec 11, 2012 10:17 AM
Hi,

This is what I see when I open a RC-file



And this when I open a RES-file. Here I can edit everything visualy, and with the RC only the text...


I use Pelles C 6.50.8
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Pelles C question
Posted: Tue Dec 11, 2012 10:29 AM

Marc,

Pelles C only shows a textfile if there is an an error in the .rc file. Maybe you have an unresolved include or define.

kind regards

Stefan
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Pelles C question
Posted: Tue Dec 11, 2012 10:52 AM
Stefan,

Thank you for ne information.

I see that Pelles gives an error: Invalid syntax on

Code (fw): Select all Collapse
SCHUIN   BITMAP c:\FWH\MARCLOGO\BUTTONS\schuin.bmp


and a fatal error: Feature not implemented on

Code (fw): Select all Collapse
FONT     BITMAP c:\FWH\MARCLOGO\BUTTONS\font.bmp


on the line
Code (fw): Select all Collapse
DELETE   BITMAP c:\FWH\MARCLOGO\BUTTONS\delete.bmp
a get warning: Unrecognized or misplaced token: (

Probably are FONT and DELETE are reserved words. Can't I use them?

Is the syntax different then with workshop?
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Pelles C question
Posted: Tue Dec 11, 2012 12:37 PM

Hi,

I have found the problem. Pelles C have some problems with names of bitmaps like 'DELETE', 'FONT'.
After renaming them, everything works fine :D

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion