PellesC RC-file compile with BCC?

Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

PellesC RC-file compile with BCC?

Post by Marc Vanzegbroeck »

Hi,

Is it possible to edit the RC-file with pelles, and still compile it with BCC.

If I open a RC-file created with Workshop, and save it with PelesC, it look different.

PellesC add those lines

Code: Select all

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
 
It also change my bitmaps from

Code: Select all

OPENDB  ICON    c:\_vmsdata\fwh\projects\tpsdoc\prg\icons\opendb.ico
to

Code: Select all

OPENDB ICON "..\\..\\tpsdoc\\prg\\icons\\opendb.ico"
with a result, the compile can't find it.

Also a dialog like

Code: Select all

INSTGEBRUIKINV DIALOG 6, 15, 232, 91
STYLE DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Ingave"
FONT 8, "MS Sans Serif"
{
 EDITTEXT 101, 51, 18, 68, 12
 EDITTEXT 102, 51, 33, 68, 12, ES_PASSWORD | WS_BORDER | WS_TABSTOP
 EDITTEXT 103, 51, 48, 158, 12
 CHECKBOX "Volledige toegang", 104, 132, 21, 71, 8, BS_AUTOCHECKBOX | WS_TABSTOP
 PUSHBUTTON "OK", 1000, 51, 73, 50, 14
 PUSHBUTTON "Annuleer", 1001, 114, 73, 50, 14
 RTEXT "LoginID :", -1, 8, 20, 41, 8
 RTEXT "Passwoord :", -1, 9, 35, 40, 8
 RTEXT "Naam :", -1, 8, 50, 41, 8
 GROUPBOX "Gebruiker", -1, 9, 7, 213, 61, BS_GROUPBOX
}
 
is changed to

Code: Select all

INSTGEBRUIKINV DIALOG DISCARDABLE 6, 15, 232, 91
STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Ingave"
FONT 8, "MS Sans Serif"
{
  CONTROL "", 101, "Edit", WS_BORDER|WS_TABSTOP, 51, 18, 68, 12
  CONTROL "", 102, "Edit", ES_PASSWORD|WS_BORDER|WS_TABSTOP, 51, 33, 68, 12
  CONTROL "", 103, "Edit", WS_BORDER|WS_TABSTOP, 51, 48, 158, 12
  CONTROL "Volledige toegang", 104, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 132, 21, 71, 8
  CONTROL "OK", 1000, "Button", WS_TABSTOP, 51, 73, 50, 14
  CONTROL "Annuleer", 1001, "Button", WS_TABSTOP, 114, 73, 50, 14
  CONTROL "LoginID :", -1, "Static", SS_RIGHT|WS_GROUP, 8, 20, 41, 8
  CONTROL "Passwoord :", -1, "Static", SS_RIGHT|WS_GROUP, 9, 35, 40, 8
  CONTROL "Naam :", -1, "Static", SS_RIGHT|WS_GROUP, 8, 50, 41, 8
  CONTROL "Gebruiker", -1, "Button", BS_GROUPBOX, 9, 7, 213, 61
}
 
Do I have to compile the RC with something else then BCC?
Thanks
Regards,
Marc

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

Re: PellesC RC-file compile with BCC?

Post by Marc Vanzegbroeck »

Hi,

I got it working :lol:

I removed

Code: Select all

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
Regards,
Marc

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

Re: PellesC RC-file compile with BCC?

Post by Marc Vanzegbroeck »

Hi,

Each time i save the file again, PellesC add those lines again

Code: Select all

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
 
How can I disable this.
Also when I add a complete path, it's allways changed back to something like this

Code: Select all

BETAALD BITMAP "..\\..\\..\\MARCLOGO\\BITMAPS\\betaald.bmp"
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: PellesC RC-file compile with BCC?

Post by Kleyber »

Marc,

Just a suggestion: If you are converting a Resource Workshop RC file into Pelles C, the better way is to use the RES file generated by Workshop and open it directly with Pelles C. Every time you open a RC file using Pelles C, it always change its data and generates errors during compilation.
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: PellesC RC-file compile with BCC?

Post by Marc Vanzegbroeck »

Kleber,

Thank you for the suggestion. That was also my problem. When I changed the RC, to PellesC can read it, I could compile it.
But when I saved it again with PellesC, I get somme errors.

The same problem I have with with ResEdit.

Kleber, do you open then de RES-file,dou your changes, and save it as a RES-file again, so don't have to compile the RC-file anymore?

I like the RC-file, because it's a text-file. Sometimes I do some copying and modifications directly in the RC-file, and 'tune' it with Workshop.
For now, just to be able to still be able to modify resource-file on my 64PC-laptop, I have installed Workshop on a VMWare and modify the RC file by sharing the directory's of my host drive with VMWARE.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: PellesC RC-file compile with BCC?

Post by Kleyber »

Marc,
Kleber, do you open then de RES-file,dou your changes, and save it as a RES-file again, so don't have to compile the RC-file anymore?
Exactly. You can do all your changes directly in the RES-file and that's all. I like RC like you but there is no compatibility between Workshop and Pelles C in terms of use the same RC-file.
Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: PellesC RC-file compile with BCC?

Post by Jack »

Hi,
Is it possible to have a BRW 32 bits or 64 bits , and the problem will be solved !

Thanks .
elvira
Posts: 462
Joined: Fri Jun 29, 2012 12:49 pm

Re: PellesC RC-file compile with BCC?

Post by elvira »

Mr. Enrico,

Where you able to extract it into a separate folder?.

I think Workshop is a part of the IDE, not an standard .exe as it was in 4.5 version?. I´m I wrong?.

Thanks
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: PellesC RC-file compile with BCC?

Post by Marc Vanzegbroeck »

Enrico Maria Giordano wrote:Yes, it is part of the IDE but it can be used as if it were stand-alone.

EMG
Enrico,

Everytime I want to edit a dialog in 5.02 I get the error 'Failed to load RWDESIGN.DLL'.
The file is in the BIN-directory. Where is it on your PC?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
elvira
Posts: 462
Joined: Fri Jun 29, 2012 12:49 pm

Re: PellesC RC-file compile with BCC?

Post by elvira »

Mr. Enrico,

Could you please share the stand-alone WS?.

Thank you very much!!.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: PellesC RC-file compile with BCC?

Post by Enrico Maria Giordano »

Marc Vanzegbroeck wrote:Enrico,

Everytime I want to edit a dialog in 5.02 I get the error 'Failed to load RWDESIGN.DLL'.
The file is in the BIN-directory. Where is it on your PC?
In the same directory of bcw.exe.

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

Re: PellesC RC-file compile with BCC?

Post by Enrico Maria Giordano »

elvira wrote:Mr. Enrico,

Could you please share the stand-alone WS?.

Thank you very much!!.
It's not stand-alone and it is not free software (as far as I know), sorry.

EMG
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: PellesC RC-file compile with BCC?

Post by Marc Vanzegbroeck »

Enrico Maria Giordano wrote:
Marc Vanzegbroeck wrote:Enrico,

Everytime I want to edit a dialog in 5.02 I get the error 'Failed to load RWDESIGN.DLL'.
The file is in the BIN-directory. Where is it on your PC?
In the same directory of bcw.exe.

EMG
On my PC also. I have tried in on a VWWARE with WIN7-32bit and a WIN7-64bit, and both the same error :cry:
What's your Windows-version?
Regards,
Marc

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