Bcc72 Prsht.h resource compile error

User avatar
Antonio Linares
Site Admin
Posts: 42840
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 177 times
Been thanked: 124 times
Contact:

Re: Bcc72 Prsht.h resource compile error

Post by Antonio Linares »

Rick,

Please post here the error output
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Rick Lipkin
Posts: 2678
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA
Been thanked: 2 times

Re: Bcc72 Prsht.h resource compile error

Post by Rick Lipkin »

Antonio

This is the only error I get when I compile my .rc files

Code: Select all | Expand


WORKORD.RC
WORKRPT.RC
WORKTECH.RC
WORKVEH.RC
WOTIRE.RC
WRKADD.RC
xplook.rc
        1 file(s) copied.
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.

Error combaseapi.h 283 9: Symbol PURE is already defined. Redefinition is not the same
done!
 


In order to eliminate this error I just rem'd out line 283

Code: Select all | Expand


#if !defined(BEGIN_INTERFACE)

#if defined(_MPPC_)
    #define BEGIN_INTERFACE       void    *b;
    #define END_INTERFACE
#else
    #define BEGIN_INTERFACE
    #define END_INTERFACE
#endif
#endif


// #define PURE                // <------ line 283
#define THIS_                   INTERFACE FAR* This,
#define THIS                    INTERFACE FAR* This
#ifdef CONST_VTABLE
#undef CONST_VTBL
#define CONST_VTBL const
 


Thanks
Rick Lipkin
User avatar
Rick Lipkin
Posts: 2678
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA
Been thanked: 2 times

Re: Bcc72 Prsht.h resource compile error

Post by Rick Lipkin »

Enrico

The e-mail is on its way to you .. I included both header files and have marked the locations I rem'd out.

Rick Lipkin
User avatar
Enrico Maria Giordano
Posts: 8784
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Bcc72 Prsht.h resource compile error

Post by Enrico Maria Giordano »

Sorry Rick, I need the .RC file not the .H files (that I already have in my BCC72, of course).

EMG
User avatar
Rick Lipkin
Posts: 2678
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA
Been thanked: 2 times

Re: Bcc72 Prsht.h resource compile error

Post by Rick Lipkin »

Enrico

I have sent you my contribution sample AdoRick.prg and AdoRick.rc and have added the Resedit include files to the .rc .. see below.

Rick Lipkin

Code: Select all | Expand


// Generated by ResEdit 1.6.6
// Copyright (C) 2006-2015
// http://www.resedit.net

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include "resource.h"

CUSTOMER DIALOG 3, 13, 538, 356
STYLE WS_CHILD
FONT 8, "Arial"
{
 CONTROL "", 109, "TFolderex", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 3, 4, 524, 308
}
CUSTVIEW DIALOG 12, 11, 513, 311
STYLE WS_CHILD
FONT 6, "MS Sans Serif"
{
 LTEXT "Customer Type", 110, 8, 8, 37, 22, SS_NOPREFIX | WS_GROUP
 CONTROL "  Individual   ", 150, "BUTTON", BS_AUTORADIOBUTTON, 46, 10, 63, 12
 CONTROL "  Commercial", 151, "BUTTON", BS_AUTORADIOBUTTON, 46, 24, 63, 12
 CONTROL "Customer Id", 111, "STATIC", SS_CENTER | SS_NOPREFIX | WS_BORDER | WS_GROUP, 112, 11, 94, 10
 EDITTEXT 152, 112, 23, 94, 12, ES_AUTOHSCROLL | NOT WS_TABSTOP | WS_BORDER
 LTEXT "Company or Last Name", 112, 7, 39, 105, 10, SS_NOPREFIX | WS_GROUP
 LTEXT "First Name", 113, 119, 39, 73, 10, SS_NOPREFIX | WS_GROUP
 EDITTEXT 153, 7, 50, 105, 12, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
 EDITTEXT 154, 117, 50, 76, 12, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
 GROUPBOX "", 196, 2, -2, 213, 304, BS_GROUPBOX
 CONTROL "Customer Info", 172, "TXBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 221, 1, 290, 215
}
SERVVIEW DIALOG 12, 11, 436, 311
STYLE WS_CHILD
FONT 6, "MS Sans Serif"
{
 LTEXT "Company or Last Name", -1, 24, 58, 105, 10, SS_NOPREFIX | WS_GROUP
 EDITTEXT 120, 24, 70, 105, 12, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
}
 
User avatar
Enrico Maria Giordano
Posts: 8784
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Bcc72 Prsht.h resource compile error

Post by Enrico Maria Giordano »

I simply commented out these lines from the .RC:

Code: Select all | Expand

//#include <windows.h>
//#include <commctrl.h>
//#include <richedit.h>
//#include "resource.h"


And now your sample compiles and runs fine here.

EMG
User avatar
Rick Lipkin
Posts: 2678
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA
Been thanked: 2 times

Re: Bcc72 Prsht.h resource compile error

Post by Rick Lipkin »

Enrico

I realize that you can take out the include files and I wish I had a 32\64 bit resource editor like Resource Workshop .. but unfortunately, for Resedit to work properly, Resedit needs to see those include files in the .rc.

I have hundreds of .rc's configured to open under Resedit .. I wish I have a better resource editor choice.

Rick Lipkin
Last edited by Rick Lipkin on Tue Nov 01, 2016 1:01 pm, edited 1 time in total.
User avatar
Enrico Maria Giordano
Posts: 8784
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Bcc72 Prsht.h resource compile error

Post by Enrico Maria Giordano »

Rick Lipkin wrote:To fix in line 283 of Combaseapi.h rem out the entire line
// #define PURE


Severe warning! With this change BCC no longer compiles C modules! So, never ever modify the include files of your C compiler! :-)

EMG
User avatar
Rick Lipkin
Posts: 2678
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA
Been thanked: 2 times

Re: Bcc72 Prsht.h resource compile error

Post by Rick Lipkin »

Enrico

I have been searching for another Resource Editor other than Resedit that has no Include dependencies .. On a side note .. the ResEdit.net website has been hacked and has been blacklisted. I downloaded a new verson of Resedit last week and I ended up getting a terrible virus that wrecked my laptop. Needless to say I had to backup and re-format my laptop.

I have downloaded Resource builder which does not seem to have any Include dependencies .. however I did not like the layout of the interface so I removed it.

I could download Pelles C, but I just hate to install another full IDE and C++ compiler just to get the resource editor. If you know of another Resource Editor you can recommend, I would be grateful!

Thanks
Rick Lipkin
User avatar
Enrico Maria Giordano
Posts: 8784
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Bcc72 Prsht.h resource compile error

Post by Enrico Maria Giordano »

Rick Lipkin wrote:Enrico

I have been searching for another Resource Editor other than Resedit that has no Include dependencies .. On a side note .. the ResEdit.net website has been hacked and has been blacklisted. I downloaded a new verson of Resedit last week and I ended up getting a terrible virus that wrecked my laptop. Needless to say I had to backup and re-format my laptop.


:-(

Rick Lipkin wrote:If you know of another Resource Editor you can recommend, I would be grateful!


I wrote my own resource editor but it's in Italian language and it's tailored on my needs:

http://www.emagsoftware.it/EmagRe154.zip

EMG
User avatar
Rick Lipkin
Posts: 2678
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA
Been thanked: 2 times

Re: Bcc72 Prsht.h resource compile error

Post by Rick Lipkin »

Enrico

Thank you VERY much! I will check it out.

Rick Lipkin
User avatar
Antonio Linares
Site Admin
Posts: 42840
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 177 times
Been thanked: 124 times
Contact:

Re: Bcc72 Prsht.h resource compile error

Post by Antonio Linares »

Enrico,

great work, congratulations :-)

An english version would be very useful
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply