Page 1 of 2

Applications open a DOS box - why?

Posted: Thu Jun 22, 2006 11:37 am
by George Trojan
Hi,
Just curious, why do the sample applications which come with Fivewin/xHarbour open a DOS box when executed?

Thanks

George Trojan

Posted: Thu Jun 22, 2006 11:46 am
by Antonio Linares
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 ?

Posted: Thu Jun 22, 2006 12:01 pm
by George Trojan
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

Posted: Thu Jun 22, 2006 9:51 pm
by Antonio Linares
George,

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

Posted: Fri Jun 23, 2006 3:24 am
by George Trojan
The only problem with that is that you get all the unresolved external mouse functions referenced from RTL.LIB

Thanks

Posted: Fri Jun 23, 2006 8:29 am
by Antonio Linares
George,

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

Here we only get:
Unresolved external '_HB_FUN_HB_GT_WIN'

Posted: Fri Jun 23, 2006 11:43 am
by George Trojan
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

Posted: Sat Jun 24, 2006 7:08 am
by Antonio Linares
George,

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

Posted: Sat Jun 24, 2006 11:21 am
by Antonio Linares
George,

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

Posted: Sat Jun 24, 2006 1:03 pm
by George Trojan
Thanks for that. Searched my drive for GTNUL.LIB, don't seem to have one. Where can I source that library.

Thanks again.

Posted: Sat Jun 24, 2006 1:42 pm
by Antonio Linares
George,

What xharbour build do you use ?

Posted: Sun Jun 25, 2006 2:51 am
by George Trojan
Antonio,

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

Thanks

Posted: Sun Jun 25, 2006 5:52 am
by Antonio Linares
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.

Posted: Sun Jun 25, 2006 8:58 am
by George Trojan
Thanks

Posted: Tue Jun 27, 2006 5:11 am
by wmormar
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:

Code: Select all

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