PellesC RC-file compile with BCC?

PellesC RC-file compile with BCC?

Postby Marc Vanzegbroeck » 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: Select all  Expand view
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
 

It also change my bitmaps from
Code: Select all  Expand view
OPENDB  ICON    c:\_vmsdata\fwh\projects\tpsdoc\prg\icons\opendb.ico

to
Code: Select all  Expand view
OPENDB ICON "..\\..\\tpsdoc\\prg\\icons\\opendb.ico"

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

Also a dialog like
Code: Select all  Expand view
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  Expand view
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: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: PellesC RC-file compile with BCC?

Postby Marc Vanzegbroeck » Sun Dec 23, 2012 10:37 pm

Hi,

I got it working :lol:

I removed
Code: Select all  Expand view
#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: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: PellesC RC-file compile with BCC?

Postby Marc Vanzegbroeck » Mon Dec 24, 2012 1:07 pm

Hi,

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

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

Re: PellesC RC-file compile with BCC?

Postby Kleyber » Wed Dec 26, 2012 1: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
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?

Postby Marc Vanzegbroeck » Wed Dec 26, 2012 1: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
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: PellesC RC-file compile with BCC?

Postby Kleyber » Wed Dec 26, 2012 8: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
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?

Postby Jack » Fri Dec 28, 2012 8:08 am

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

Thanks .
Jack
 
Posts: 282
Joined: Wed Jul 11, 2007 11:06 am

Re: PellesC RC-file compile with BCC?

Postby Enrico Maria Giordano » Fri Dec 28, 2012 9:28 am

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

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

Re: PellesC RC-file compile with BCC?

Postby elvira » 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
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Re: PellesC RC-file compile with BCC?

Postby Enrico Maria Giordano » Fri Dec 28, 2012 1:24 pm

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

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

Re: PellesC RC-file compile with BCC?

Postby Marc Vanzegbroeck » Fri Dec 28, 2012 3: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
Marc Vanzegbroeck
 
Posts: 1157
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: PellesC RC-file compile with BCC?

Postby elvira » Fri Dec 28, 2012 4:20 pm

Mr. Enrico,

Could you please share the stand-alone WS?.

Thank you very much!!.
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Re: PellesC RC-file compile with BCC?

Postby Enrico Maria Giordano » Fri Dec 28, 2012 4: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
User avatar
Enrico Maria Giordano
 
Posts: 8408
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: PellesC RC-file compile with BCC?

Postby Enrico Maria Giordano » Fri Dec 28, 2012 4: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
User avatar
Enrico Maria Giordano
 
Posts: 8408
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: PellesC RC-file compile with BCC?

Postby Marc Vanzegbroeck » Fri Dec 28, 2012 4: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 :cry:
What's your Windows-version?
Regards,
Marc

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

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 153 guests

cron