Bcc72 Prsht.h resource compile error

Re: Bcc72 Prsht.h resource compile error

Postby Antonio Linares » Mon Oct 31, 2016 4:19 pm

Rick,

Please post here the error output
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bcc72 Prsht.h resource compile error

Postby Rick Lipkin » Mon Oct 31, 2016 4:54 pm

Antonio

This is the only error I get when I compile my .rc files
Code: Select all  Expand view

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 view

#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: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Bcc72 Prsht.h resource compile error

Postby Enrico Maria Giordano » Mon Oct 31, 2016 5:32 pm

Can I have the RC file to test here?

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

Re: Bcc72 Prsht.h resource compile error

Postby Rick Lipkin » Mon Oct 31, 2016 6:50 pm

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
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Bcc72 Prsht.h resource compile error

Postby Enrico Maria Giordano » Mon Oct 31, 2016 7:34 pm

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

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

Re: Bcc72 Prsht.h resource compile error

Postby Rick Lipkin » Mon Oct 31, 2016 8:52 pm

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 view

// 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
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Bcc72 Prsht.h resource compile error

Postby Enrico Maria Giordano » Mon Oct 31, 2016 8:59 pm

I simply commented out these lines from the .RC:

Code: Select all  Expand view
//#include <windows.h>
//#include <commctrl.h>
//#include <richedit.h>
//#include "resource.h"


And now your sample compiles and runs fine here.

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

Re: Bcc72 Prsht.h resource compile error

Postby Rick Lipkin » Mon Oct 31, 2016 9:05 pm

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
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Re: Bcc72 Prsht.h resource compile error

Postby Enrico Maria Giordano » Sat Nov 12, 2016 7:10 pm

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
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bcc72 Prsht.h resource compile error

Postby Rick Lipkin » Sat Nov 12, 2016 8:48 pm

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
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Bcc72 Prsht.h resource compile error

Postby Enrico Maria Giordano » Sat Nov 12, 2016 10:07 pm

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
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Bcc72 Prsht.h resource compile error

Postby Rick Lipkin » Sat Nov 12, 2016 10:22 pm

Enrico

Thank you VERY much! I will check it out.

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Bcc72 Prsht.h resource compile error

Postby Antonio Linares » Sun Nov 13, 2016 9:00 am

Enrico,

great work, congratulations :-)

An english version would be very useful
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bcc72 Prsht.h resource compile error

Postby Enrico Maria Giordano » Sun Nov 13, 2016 10:11 am

Thank you. I'll think about it. :-)

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

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 29 guests