Page 1 of 11

xHarbour.org updated!

PostPosted: Tue Jan 24, 2017 1:16 pm
by Enrico Maria Giordano
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

Re: xHarbour.org updated!

PostPosted: Tue Jan 24, 2017 6:56 pm
by karinha
Enrico, falta la versión del xHarbour para BCC7.0 gracias, saludos.

Re: xHarbour.org updated!

PostPosted: Tue Jan 24, 2017 6:59 pm
by Enrico Maria Giordano
BCC 7.0 is not supported. Please use BCC 7.2.

EMG

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 12:13 pm
by karinha
Gracias Master. Usted é mui amable en me responder. Saludos.

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 2:29 pm
by Rick Lipkin
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: 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"

 

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 2:34 pm
by Enrico Maria Giordano
BCC 7.2 still uses the old brc32.exe:

Code: Select all  Expand view
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

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 3:14 pm
by Rick Lipkin
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

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 3:33 pm
by Enrico Maria Giordano
I got:

Code: Select all  Expand view
Error VehW32.RC 5 11: Cannot open file: windows.h


So I set:

Code: Select all  Expand view
SET INCLUDE=c:\bcc72\include\windows\sdk


Then I got:

Code: Select all  Expand view
Error guiddef.h 147 11: Cannot open file: string.h


So I set:

Code: Select all  Expand view
SET INCLUDE=c:\bcc72\include\windows\sdk;c:\bcc72\include\windows\crtl


Then I got:

Code: Select all  Expand view
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

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 3:39 pm
by Rick Lipkin
Enrico ..

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

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

Here is Resource.h
Code: Select all  Expand view

#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif
 


Thanks
Rick Lipkin

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 3:42 pm
by Enrico Maria Giordano
Ok, now I get:

Code: Select all  Expand view
Error VehW32.RC 2022 35: Cannot open file: .\\Add16.bmp


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

EMG

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 4:47 pm
by Rick Lipkin
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: 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>

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

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 5:22 pm
by Enrico Maria Giordano
Rick,

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

EMG

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 6:03 pm
by carlos vargas
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"

Image
and all work ok.

Re: xHarbour.org updated!

PostPosted: Fri Jan 27, 2017 8:53 pm
by Rick Lipkin
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
Image
Image
Image

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

Re: xHarbour.org updated!

PostPosted: Sat Jan 28, 2017 10:45 am
by Antonio Linares
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'