Page 1 of 2

_dcgetbx.prg build error

Posted: Thu Apr 28, 2016 2:26 am
by ampandya
Hi
I have recently got exp20 version and trying to run the build20.bat file.

I am getting the following error.
Can you please help me build this?
--------------------------------------------------------------------------------------------------------
_DCGETBX.PRG(13028:0): error XBT0200: Syntax Error
_DCGETBX.PRG(13483:0): error XBT0206: Invalid use of @ (pass by reference) operator
_DCGETBX.PRG(13498:0): error XBT0200: Syntax Error
_DCGETBX.PRG(13604:0): error XBT0206: Invalid use of @ (pass by reference) operator
_DCGETBX.PRG(13604:0): error XBT0204: Statement not allowed outside procedure or function
_DCGETBX.PRG(2:0): error XBT0204: Statement not allowed outside procedure or function

6 error(s) found in file _DCGETBX.PRG!

'xpp /q /n /w /m /b /ga /dEXPRESS18 /dll:DYNAMIC /COFF /b /dDEBUG /dll /o..\..\
obj20 @C:\Users\pandya\AppData\Local\Temp\04281879.tmp' returned error 6
Processing time: 0.34 secs.
--------------------------------------------------------------------------------------------------------

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 4:10 am
by Auge_Ohr
ampandya wrote:I have recently got exp20 version and trying to run the build20.bat file.
this File is for Xbase++ v2.0x

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 5:30 am
by rdonnay
What version of Xbase++ are you using?

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 5:37 am
by ampandya
Xbase++ Version 1.82

Jimmy said i need to use XBase++ 2.0x.

I had been given XB folder by the previous developer, i am in process of updating this becase i have recently bought support for express++ 2.

Do you think it would be easy to update xbase++?

Many Thanks

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 5:45 am
by rdonnay
I will need to make some changes to the code to make it compile in 1.82.

Let me see what I can do for you.

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 6:13 am
by rdonnay
I needed to make a few source code changes to make eXpress++ compile in 1.82.

Please confirm that the attached files work for you and if they do, I will also give you the updated source files.

There are features that are documented in eXpress++ 1.9 and above that will not work in 1.82 due to the fact that these features depended on features of Xbase++ 1.9 or 2.0.

Create a folder named \exp20\bin182 and extract all the files to that folder.
Change your path to point to the \exp20\bin182 folder when running your applications.

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 6:37 am
by ampandya
Hi
using these file, my program compile correctly and exe was generated but when run it
the error related to XPPRT1.DLL came up.

Thanks

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 7:07 am
by rdonnay
I don't understand this error.

I have to try to reproduce the error.

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 7:16 am
by rdonnay
I think your problem may be your .LIB files.

Those in your eXpress++ installation were built with Xbase++ 2.0.

Here are some .LIB files that were built with 1.82.

Re: _dcgetbx.prg build error

Posted: Thu Apr 28, 2016 7:57 am
by ampandya
Hi,
-----------------------------------------------------------------
the program works when used the following path:
-----------------------------------------------------------------
@echo off
rem Environment for Xbase++ 1.82
rem created by Xbase++ 1.82 installation 10-11-2003
SET LIB=C:\xb\LIB;C:\exp18\lib
SET PATH=C:\xb\BIN;C:\xb\LIB;C:\exp18\BIN182;C:\exp18\BIN;c:\windows;c:\windows\system32
SET INCLUDE=C:\xb\INCLUDE;C:\exp18\include
SET XPPRESOURCE=C:\xb\RESOURCE\BITMAP;%XPPRESOURCE%
SET XPPRESOURCE=C:\xb\RESOURCE\ICON;%XPPRESOURCE%
SET XPPRESOURCE=C:\xb\RESOURCE\FONT;%XPPRESOURCE%
SET XPPRESOURCE=C:\xb\RESOURCE\POINTER;%XPPRESOURCE%

-----------------------------------------------------------------
When used this path and dclipx.dll from bin20, the attached error occurred
-----------------------------------------------------------------

@echo off
rem Environment for Xbase++ 1.82
rem created by Xbase++ 1.82 installation 10-11-2003
SET LIB=C:\xb\LIB;C:\exp20\lib
SET PATH=C:\xb\BIN;C:\xb\LIB;C:\exp20\BIN182;c:\windows;c:\windows\system32
SET INCLUDE=C:\xb\INCLUDE;C:\exp20\include
SET XPPRESOURCE=C:\xb\RESOURCE\BITMAP;%XPPRESOURCE%
SET XPPRESOURCE=C:\xb\RESOURCE\ICON;%XPPRESOURCE%
SET XPPRESOURCE=C:\xb\RESOURCE\FONT;%XPPRESOURCE%
SET XPPRESOURCE=C:\xb\RESOURCE\POINTER;%XPPRESOURCE%