Pelles C question

Pelles C question

Postby Marc Vanzegbroeck » Mon Dec 10, 2012 2: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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Pelles C question

Postby Rick Lipkin » Mon Dec 10, 2012 2: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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Pelles C question

Postby Enrico Maria Giordano » Mon Dec 10, 2012 3:35 pm

Rick,

how do you clone a dialog using ResEdit?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Pelles C question

Postby Rick Lipkin » Mon Dec 10, 2012 4: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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Pelles C question

Postby carlos vargas » Mon Dec 10, 2012 5: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)
User avatar
carlos vargas
 
Posts: 1720
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Pelles C question

Postby Enrico Maria Giordano » Mon Dec 10, 2012 5: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
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Pelles C question

Postby sambomb » Mon Dec 10, 2012 7: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
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Pelles C question

Postby joseluisysturiz » Tue Dec 11, 2012 2: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=download&lang=en
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: Pelles C question

Postby Marc Vanzegbroeck » Tue Dec 11, 2012 7: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: Select all  Expand view
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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Pelles C question

Postby Richard Chidiak » Tue Dec 11, 2012 9: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Pelles C question

Postby sambomb » Tue Dec 11, 2012 9: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
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: Pelles C question

Postby Marc Vanzegbroeck » Tue Dec 11, 2012 10:17 am

Hi,

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

Image

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

I use Pelles C 6.50.8
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Pelles C question

Postby StefanHaupt » 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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Pelles C question

Postby Marc Vanzegbroeck » Tue Dec 11, 2012 10:52 am

Stefan,

Thank you for ne information.

I see that Pelles gives an error: Invalid syntax on

Code: Select all  Expand view
SCHUIN   BITMAP c:\FWH\MARCLOGO\BUTTONS\schuin.bmp


and a fatal error: Feature not implemented on

Code: Select all  Expand view
FONT     BITMAP c:\FWH\MARCLOGO\BUTTONS\font.bmp


on the line
Code: Select all  Expand view
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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Pelles C question

Postby Marc Vanzegbroeck » 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests