FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PellesC RC-file compile with BCC?
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
PellesC RC-file compile with BCC?
Posted: Sun Dec 23, 2012 10:31 AM
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 (fw): Select all Collapse
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>

It also change my bitmaps from
Code (fw): Select all Collapse
OPENDB  ICON    c:\_vmsdata\fwh\projects\tpsdoc\prg\icons\opendb.ico

to
Code (fw): Select all Collapse
OPENDB ICON "..\\..\\tpsdoc\\prg\\icons\\opendb.ico"

with a result, the compile can't find it.

Also a dialog like
Code (fw): Select all Collapse
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 (fw): Select all Collapse
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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: PellesC RC-file compile with BCC?
Posted: Sun Dec 23, 2012 10:37 PM
Hi,

I got it working :-)

I removed
Code (fw): Select all Collapse
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
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: PellesC RC-file compile with BCC?
Posted: Mon Dec 24, 2012 01:07 PM
Hi,

Each time i save the file again, PellesC add those lines again
Code (fw): Select all Collapse
#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 (fw): Select all Collapse
BETAALD BITMAP "..\\..\\..\\MARCLOGO\\BITMAPS\\betaald.bmp"
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
Re: PellesC RC-file compile with BCC?
Posted: Wed Dec 26, 2012 01:21 PM

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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: PellesC RC-file compile with BCC?
Posted: Wed Dec 26, 2012 01:36 PM

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
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
Re: PellesC RC-file compile with BCC?
Posted: Wed Dec 26, 2012 08:08 PM
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
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 08:08 AM

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

Thanks .

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 09:28 AM

Yes, it exists. It's part of an old 32 bit Borland C++ compiler (5.02).

EMG

Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 10:45 AM

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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 01:24 PM

Yes, it is part of the IDE but it can be used as if it were stand-alone.

EMG

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 03:41 PM
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
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 04:20 PM

Mr. Enrico,

Could you please share the stand-alone WS?.

Thank you very much!!.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 04:32 PM
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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 04:34 PM
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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: PellesC RC-file compile with BCC?
Posted: Fri Dec 28, 2012 04:55 PM
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 :-)
What's your Windows-version?
Regards,

Marc



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