FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Applications open a DOS box - why?
Posts: 16
Joined: Fri Apr 28, 2006 04:09 PM
Applications open a DOS box - why?
Posted: Thu Jun 22, 2006 11:37 AM

Hi,
Just curious, why do the sample applications which come with Fivewin/xHarbour open a DOS box when executed?

Thanks

George Trojan

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Applications open a DOS box - why?
Posted: Thu Jun 22, 2006 11:46 AM

George,

What Harbour/xharbour versions/builds are you using ? And what Windows version are you using ?

With recent Harbour builds there was such error with Windows 98 only. It has been recently fixed.

Are you linking using the parameters that we specify at samples\buildh.bat ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Fri Apr 28, 2006 04:09 PM
Applications open a DOS box - why?
Posted: Thu Jun 22, 2006 12:01 PM

xHarbour build 0.99.61, the buildx.bat supplied with FW2.7; however, the applications are built using Win'98. We use '98 as many of our customers still use '98 so we develop using a '98 computer.

Thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Applications open a DOS box - why?
Posted: Thu Jun 22, 2006 09:51 PM

George,

Please don't link GTWIN.lib and build your app again.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Fri Apr 28, 2006 04:09 PM
Applications open a DOS box - why?
Posted: Fri Jun 23, 2006 03:24 AM

The only problem with that is that you get all the unresolved external mouse functions referenced from RTL.LIB

Thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Applications open a DOS box - why?
Posted: Fri Jun 23, 2006 08:29 AM

George,

Please copy here the list of unresolved externals that you get.

Here we only get:
Unresolved external '_HB_FUN_HB_GT_WIN'

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Fri Apr 28, 2006 04:09 PM
Applications open a DOS box - why?
Posted: Fri Jun 23, 2006 11:43 AM

I get the same with harbour, with xharbour I get the below:

Thanks

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_hb_gt_Init' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetScreenHeight' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetScreenWidth' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Exit' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_ExtendedKeySupport' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_ReadKey' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_AdjustPos' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Box' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_VertLine' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_HorizLine' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_PreExt' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_PostExt' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Row' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Col' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetPos' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetCursorStyle' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_IsColor' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_RectSize' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Replicate' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetBlink' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetBlink' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetMode' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Puts' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Scroll' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Tone' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Version' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_DispCount' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_DispEnd' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Suspend' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_Resume' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_DispBegin' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetClipboard' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetClipboardSize' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_ProcessMessages' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetClipboard' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_GetText' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_PutText' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_gt_SetAttribute' referenced from C:\XHARBOUR\LIB\RTL.LIB|gtapi
Error: Unresolved external '_hb_mouse_IsPresent' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Show' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Hide' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Col' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_Row' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_SetPos' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_IsButtonPressed' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_CountButton' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_SetBounds' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_mouse_GetBounds' referenced from C:\XHARBOUR\LIB\RTL.LIB|mouseapi
Error: Unresolved external '_hb_gt_OutStd' referenced from C:\XHARBOUR\LIB\RTL.LIB|console
Error: Unresolved external '_hb_gt_OutErr' referenced from C:\XHARBOUR\LIB\RTL.LIB|console

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Applications open a DOS box - why?
Posted: Sat Jun 24, 2006 07:08 AM

George,

This problem was fixed yesterday for Harbour and we expect to have a solution for xharbour today.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Applications open a DOS box - why?
Posted: Sat Jun 24, 2006 11:21 AM

George,

Please link GTNUL.lib instead GTWIN.lib and try it again. Thanks.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Fri Apr 28, 2006 04:09 PM
Applications open a DOS box - why?
Posted: Sat Jun 24, 2006 01:03 PM

Thanks for that. Searched my drive for GTNUL.LIB, don't seem to have one. Where can I source that library.

Thanks again.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Applications open a DOS box - why?
Posted: Sat Jun 24, 2006 01:42 PM

George,

What xharbour build do you use ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Fri Apr 28, 2006 04:09 PM
Applications open a DOS box - why?
Posted: Sun Jun 25, 2006 02:51 AM

Antonio,

xHarbour build 0.99.61, downloaded with FW2.7 from your server.

Thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Applications open a DOS box - why?
Posted: Sun Jun 25, 2006 05:52 AM

George,

We are going to publish a new xharbour build this next week, with a GTGUI.lib to be used, that solves the console window issue.

Same for Harbour.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Fri Apr 28, 2006 04:09 PM
Applications open a DOS box - why?
Posted: Sun Jun 25, 2006 08:58 AM

Thanks

Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Applications open a DOS box - why?
Posted: Tue Jun 27, 2006 05:11 AM
George Trojan wrote:Thanks


Amigo,

Lo resolví de la siguiente manera.

Eliminé la LIB GTWIN y adicioné la GTNUL.LIB

Adicioné un PRG: gtnul.prg conteniendo lo siguiente:

REQUEST HB_GT_NUL
FUNCTION GTSYS
   RETURN


Funcionando sin problemas hasta ahora.

Si alguien conoce o sabe que hace la GTSYS, agradecería lo explicara.

Saludos

PD. Uso xHarbour (bajado del CVS 26-06-2006, 10:00pm) y FWH 2.7
William, Morales

Saludos



méxico.sureste