Problem with windows 98

323 views
Skip to first unread message

Rossine

unread,
Jul 11, 2011, 10:57:07 AM7/11/11
to Harbour Developers
Hello,

This sample work fine when compiling with clipper , but not with
harbour, under windows 98

[SAMPLE]

*************
Function MAIN
*************

local vARQ := {}

cls

aadd( vARQ, {"LINHA","C",200,0} )

DBcreate( "teste", vARQ )

USE "teste" alias "TESTE" new shared

TESTE->( dbappend() )
TESTE->LINHA := "TESTE 1"

TESTE->( dbappend() )
TESTE->LINHA := "TESTE 2"

TESTE->( dbappend() )
TESTE->LINHA := "TESTE 3"

TESTE->( dbappend() )
TESTE->LINHA := "TESTE 4"

TESTE->( dbgotop() )

browse()

return NIL

[ENDSAMPLE]

In line:

DBcreate( "teste", vARQ )

...the program freezes and does not create the DBF

I use this line for compile:

hbmk2 -trace -mt -info -n TESTE > comp.log

I have to change some parameter or add a lib to compile ?

Best Regards,

Rossine.

Rossine

unread,
Jul 11, 2011, 11:11:15 AM7/11/11
to Harbour Developers
Hi,

I use Harbour 2.1.0rc2 (Rev. 16915) + BCC582

Regards,

Rossine.

Maurizio Faccio adinet

unread,
Jul 11, 2011, 1:53:14 PM7/11/11
to harbou...@googlegroups.com
Maybe related with unicows support.

Please review the following:

http://sourceforge.net/tracker/?func=detail&aid=3317907&group_id=681&atid=100681

http://www.matrixlist.com/pipermail/harbour/2010-February/032787.html

You should link with unicows library and copy unicows.dll to somewhere
you program can find. (running directory, windows c:\windows)

Hope it helps

Maurizio


El 11/07/2011 12:11 p.m., Rossine escribi�:

Rossine

unread,
Jul 11, 2011, 3:20:27 PM7/11/11
to Harbour Developers
Hello Maurizio,

> Maybe related with    unicows support.
>
> Please review the following:
>
> http://sourceforge.net/tracker/?func=detail&aid=3317907&group_id=681&...
>
> http://www.matrixlist.com/pipermail/harbour/2010-February/032787.html
>
> You should link with unicows library and copy unicows.dll to somewhere
> you program can find. (running directory, windows c:\windows)
>
> Hope it helps
>
> Maurizio

Yes, the problem solved with this tip. Many Thank´s.

But if I use for compile in "hbmk2" the option "-shared". When I use
this , occurs this erro:

Error DBFCDX/1011 Write Error: teste.dbf (DOS Error 6)

Any more suggestions ?

Rossine.

Przemysław Czerpak

unread,
Jul 11, 2011, 5:14:49 PM7/11/11
to harbou...@googlegroups.com
On Mon, 11 Jul 2011, Rossine wrote:

Hi,

> > Maybe related with    unicows support.
> > Please review the following:
> > http://sourceforge.net/tracker/?func=detail&aid=3317907&group_id=681&...
> > http://www.matrixlist.com/pipermail/harbour/2010-February/032787.html
> > You should link with unicows library and copy unicows.dll to somewhere
> > you program can find. (running directory, windows c:\windows)

> Yes, the problem solved with this tip. Many Thank´s.
> But if I use for compile in "hbmk2" the option "-shared". When I use
> this , occurs this erro:
> Error DBFCDX/1011 Write Error: teste.dbf (DOS Error 6)
> Any more suggestions ?

harbour*.dll is not linked with UNICOWS library so it will not work.
If you want to create executables linked harbour*.dll and then use
them on Win9x/ME then you have to compile harbour yourself with some
special build settings.

best regards,
Przemek

Rossine

unread,
Jul 11, 2011, 5:52:40 PM7/11/11
to Harbour Developers
Hello Przemek,

> ...Win9x/ME then you have to compile harbour yourself with some special build settings.

Could you indicate which settings I could try to solve this problem ?

Thank you for your help.

Rossine.

Rossine

unread,
Jul 12, 2011, 10:26:29 AM7/12/11
to Harbour Developers
Hello Viktor,

I upgraded to 16920 and harbour and I changed
"HB_BUILD_WINUNI=unicows" and "set HB_BUILD_UNICODE=yes" but not
works, I see the same error. "Error DBFCDX/1011 Write Error: teste.dbf
(DOS Error 6)"

I generated binaries harbour and my application again with these sets:

set HB_INSTALL_IMPLIB=yes
set HB_BUILD_IMPLIB=yes
set HB_BUILD_VERBOSE=yes
set HB_BUILD_DLL=no
set HB_BUILD_DYN=yes

set HB_BUILD_UNICODE=yes
set HB_BUILD_WINUNI=unicows
set HB_HVM_ALL=yes
set HB_BUILD_OPTIM=yes
set HB_BUILD_PARTS=all
set HB_REBUILD_EXTERN=yes
set HB_BUILD_SHARED=yes

\harbour\bin\mingw32-make.exe clean install
! Building Harbour 2.1.0rc2 from source - http://harbour-project.org
! MAKE: c:/harbour/bin/mingw32-make 3.81 sh.exe clean install
! HB_USER_CFLAGS: -DHB_GC_AUTO -DHB_FM_STATISTICS_OFF
! HB_INSTALL_PREFIX: c:\hrb_bcc
! HB_INSTALL_BIN: c:\hrb_bcc\bin
! HB_INSTALL_LIB: c:\hrb_bcc\lib
! HB_INSTALL_DYN: c:\hrb_bcc\dyn
! HB_INSTALL_INC: c:\hrb_bcc\include
! HB_INSTALL_DOC: c:\hrb_bcc\doc
! HB_BUILD_DYN: yes
! HB_BUILD_SHARED: no
! HB_BUILD_OPTIM: yes
! HB_BUILD_PARTS: all
! HB_REBUILD_EXTERN: yes
! HB_INSTALL_IMPLIB: yes
! HB_HOST_PLAT: win (x86) HB_SHELL: nt
! HB_PLATFORM: win (x86) (autodetected)
! HB_COMPILER: bcc (autodetected)

- So I link unicows.lib:

hbmk2 -trace -mt -info -n -shared -lc:\unicows\unicows.lib teste

- I copied "harbour-21-bcc.dll" to the current folder and unicows.dll
too.

- I followed the steps in this link:
http://www.matrixlist.com/pipermail/harbour/2010-February/032787.html

I forgot something or did something wrong ?

Best Regards,

Rossine.



Viktor Szakáts

unread,
Jul 12, 2011, 10:30:13 AM7/12/11
to harbou...@googlegroups.com
Hi Rossine,

Please read again the ChangeLog entry and
correct your settings accordingly. You may also
want to clean all the old and unused settings
to avoid confusion.

Viktor

Rossine

unread,
Jul 13, 2011, 8:46:48 AM7/13/11
to Harbour Developers
Hi Viktor,

Here my fault:

set HB_BUILD_WINUNI=unicows

I changed for:

set __HB_BUILD_WINUNI=unicows

I deleted This:

set HB_BUILD_UNICODE=no

Changelog says:

+ Renamed HB_BUILD_UNICODE to HB_BUILD_WINUNI.

\harbour\bin\mingw32-make.exe clean install
! Building Harbour 2.1.0rc2 from source - http://harbour-project.org
! MAKE: c:/harbour/bin/mingw32-make 3.81 sh.exe clean install
! HB_USER_CFLAGS: -DHB_GC_AUTO -DHB_FM_STATISTICS_OFF
! HB_INSTALL_PREFIX: c:\hrb_bcc
! HB_INSTALL_BIN: c:\hrb_bcc\bin
! HB_INSTALL_LIB: c:\hrb_bcc\lib
! HB_INSTALL_DYN: c:\hrb_bcc\dyn
! HB_INSTALL_INC: c:\hrb_bcc\include
! HB_INSTALL_DOC: c:\hrb_bcc\doc
! HB_BUILD_DYN: yes
! HB_BUILD_SHARED: no
! HB_BUILD_OPTIM: yes
! __HB_BUILD_WINUNI: unicows
! HB_BUILD_PARTS: all
! HB_REBUILD_EXTERN: yes
! HB_INSTALL_IMPLIB: yes
! HB_HOST_PLAT: win (x86) HB_SHELL: nt
! HB_PLATFORM: win (x86) (autodetected)
! HB_COMPILER: bcc (autodetected)

My system works fine in windows 98 now :-)

Many thank´s for this solution :)

Best Regards,

Rossine.
Reply all
Reply to author
Forward
0 new messages