FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index WhatsNew / Novedades xHarbour.org updated!
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
xHarbour.org updated!
Posted: Tue Jan 24, 2017 01:16 PM

xHarbour.org has been update with the new builds, sources and compilers!

Please visit:

http://www.xharbour.org

Many thanks to Mel for all his hard work in creating the new builds!

EMG

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: xHarbour.org updated!
Posted: Tue Jan 24, 2017 06:56 PM

Enrico, falta la versión del xHarbour para BCC7.0 gracias, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour.org updated!
Posted: Tue Jan 24, 2017 06:59 PM

BCC 7.0 is not supported. Please use BCC 7.2.

EMG

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 12:13 PM

Gracias Master. Usted é mui amable en me responder. Saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 02:29 PM
To All

I like Bcc72, however if you have any embedded #include headers in your .rc files, they will not compile into .res without errors. Also, had problems compiling .rc's that have datepick controls as well. :-)

Rick Lipkin
Code (fw): Select all Collapse
// Generated by ResEdit 1.6.6
// Copyright (C) 2006-2015
// <!-- m --><a class="postlink" href="http://www.resedit.net">http://www.resedit.net</a><!-- m -->

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include "resource.h"
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 02:34 PM
BCC 7.2 still uses the old brc32.exe:

Code (fw): Select all Collapse
Borland Resource Compiler / Binder
Version 5.40 Copyright (c) 1992, 1999 Inprise Corporation


Send me a compilable sample of the problem and I will try to give you a solution.

EMG
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 03:14 PM

Enrico

Just sent you my monolithic .rc file .. Compile to .res with brc32 -r and you will see the problems associated with the ResEdit header files.

Thanks
Rick Lipkin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 03:33 PM
I got:

Code (fw): Select all Collapse
Error VehW32.RC 5 11: Cannot open file: windows.h


So I set:

Code (fw): Select all Collapse
SET INCLUDE=c:\bcc72\include\windows\sdk


Then I got:

Code (fw): Select all Collapse
Error guiddef.h 147 11: Cannot open file: string.h


So I set:

Code (fw): Select all Collapse
SET INCLUDE=c:\bcc72\include\windows\sdk;c:\bcc72\include\windows\crtl


Then I got:

Code (fw): Select all Collapse
Error combaseapi.h 283 9: Symbol PURE is already defined. Redefinition is not the same


So I fix combaseapi.h line 283 (commented out). Then I got an error on resource.h that is not a known include file.

EMG
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 03:39 PM
Enrico ..

Here is the thread we discussed a few months ago ..

viewtopic.php?f=3&t=33117&hilit=bcc72

Here is Resource.h
Code (fw): Select all Collapse
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif


Thanks
Rick Lipkin
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 03:42 PM
Ok, now I get:

Code (fw): Select all Collapse
Error VehW32.RC 2022 35: Cannot open file: .\\Add16.bmp


I don't see any severe problem, or am I wrong?

EMG
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 04:47 PM
Enrico ..

Sorry about the file .. the .rc is looking to load all my icons and bitmaps .. lets try it this way ..

Go To \Samples and lets use Buildx.bat AdoRick .. before you compile substitute this AdoRick.rc file.
Code (fw): Select all Collapse
// Generated by ResEdit 1.6.6
// Copyright (C) 2006-2015
// <!-- m --><a class="postlink" href="http://www.resedit.net">http://www.resedit.net</a><!-- m -->

#include <windows.h>
#include <commctrl.h>
#include <richedit.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
}


You should get the Bcc72 errors .. however, if you remove the ResEdit header files .. the AdoRick compiles perfectly. Unfortunately, for those of us that use ResEdit or the Pelles C resource editor .. the header files are part of each .rc :-)

Rick Lipkin
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 05:22 PM
Rick,

can you tell me exactly which is the error message you get that you cannot fixed?

EMG
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 06:03 PM
i modify the header in "resource scrip template" in resedit

//#include <winresrc.h>
#include <windows.h>
//#include <commctrl.h>
//#include <richedit.h>

#define WC_TABCONTROL "SysTabControl32"
#define MONTHCAL_CLASS "SysMonthCal32"

#include "resource.h"


and all work ok.
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xHarbour.org updated!
Posted: Fri Jan 27, 2017 08:53 PM
Carlos

Thanks for your help ..

I had to fix the header prsht.h :
Error prsht.h 917 1: '#endif' before '#if'

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

For the above errors was the fix for the resedit headers to just rem them out ? meaning if I rem out commctrl.h and richedit.h will that stop the calls to prsht.h and to combaseapi.h ?

//#include <commctrl.h>
//#include <richedit.h>

Also have three other errors .. DateTimePick and a Black frame used for a picture control .. and my Version.rc




I ran into these errors several months ago and decided the 'juice wasn't worth the squeeze'

If you can make any suggestions to allow the picture frame and datepick to work .. I can make Bcc72 work ..

Rick Lipkin
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour.org updated!
Posted: Sat Jan 28, 2017 10:45 AM

Rick,

Were you able to fix this for BCC 7.1 64 ?

> I had to fix the header prsht.h :
> Error prsht.h 917 1: '#endif' before '#if'

regards, saludos

Antonio Linares
www.fivetechsoft.com