FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Newbie problem!?
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Newbie problem!?
Posted: Thu Mar 12, 2009 08:13 AM

Hi,

we have successfully migrated our 16bit clipper application to xHarbour.com. This app is running in the GTWVG/HB_EXT_INKEY (New control keys that do not overlap with other codes) modus.

Now we want to add some FiveWin GUI elements, for example 'MessageBox( <hWnd>, <cText>, <cTitle>, <nStyle> )'.

So I have to include the 'FiveWin.ch' and here we go. But now something strange happens. There are some keycodes, e. g. "E" without any reaction and the MEMOEDIT doesn't work anymore (Argument error, operation '*', Trace Through: TDIALOG:NEW). :(

Is here anybody around who can help me:
- knows this problem or
- can direct me to a possible solution or
- have some other tips to find a solution
- can tell me some 'best practices' starting with FiveWin
before I'm lost in space :wink:

THX in advance

Frank

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Newbie problem!?
Posted: Thu Mar 12, 2009 09:05 AM

Try to not include Fivewin.ch.

EMG

Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Newbie problem!?
Posted: Thu Mar 12, 2009 10:04 AM

Hello Enrico,
ok that works.
I guess because it's a Winapi function!?
But when I want to use FiveWin function, e. g. 'MsgNoYes( <cMsg>, <cTitle> ) --> lYesNo', I have to include the FiveWin.ch.

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Newbie problem!?
Posted: Thu Mar 12, 2009 11:58 AM

Frank,

> But when I want to use FiveWin function, e. g. 'MsgNoYes( <cMsg>, <cTitle> ) --> lYesNo', I have to include the FiveWin.ch

If you just want to use some functions, then there is no need to include FiveWin.ch

FiveWin.ch implements the FiveWin commands to manage GUI objects.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Newbie problem!?
Posted: Thu Mar 12, 2009 01:15 PM

Antonio,
without FiveWin.ch I got an unresolved external symbol '_HB_FUN_MSGNOYES'!

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Newbie problem!?
Posted: Thu Mar 12, 2009 01:47 PM

I don't see how this is possible. MsgNoYes() don't need include files at all, as far as I know.

EMG

Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Newbie problem!?
Posted: Thu Mar 12, 2009 04:14 PM
done some tests with the sample altd.prg and xHarbourBuilder Professional September2008 on two windows machines: XP 32-bit SP3 (new installed virtual machine) and Vista 64-bit SP1. On both machines same behaviour:

- the original prg doesn't compile: unresolved external symbol '_HB_FUN_MSGINFO'
- ok, when including FiveWin.ch
- ok, replacing 'MsgInfo' with 'MessageBox' without FiveWin.ch

Antonio Linares wrote:
If you just want to use some functions, then there is no need to include FiveWin.ch


Additionally, I've tried to extract the part of the FiveWin.ch which make the prg run, but with no success. I thought one of these files: "Dialog.ch", "Font.ch", "Ini.ch", "Menu.ch", "Print.ch", "Colors.ch", "DLL.ch", "Folder.ch", "ODBC.ch", "DDE.ch", "Video.ch", "VKey.ch", "Tree.ch", "WinApi.ch" are responsible, but I've given up :-)
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Newbie problem!?
Posted: Thu Mar 12, 2009 05:58 PM
frose wrote:
Antonio Linares wrote:
If you just want to use some functions, then there is no need to include FiveWin.ch


Additionally, I've tried to extract the part of the FiveWin.ch which make the prg run, but with no success. I thought one of these files: "Dialog.ch", "Font.ch", "Ini.ch", "Menu.ch", "Print.ch", "Colors.ch", "DLL.ch", "Folder.ch", "ODBC.ch", "DDE.ch", "Video.ch", "VKey.ch", "Tree.ch", "WinApi.ch" are responsible, but I've given up :-)


An empty FiveWin.ch does the job! Very strange, must be something within the xBuilder, I think.

So problem with the FiveWin.ch is solved, but the root problem still exist!

Even with the emptied FiveWin.ch the app crashes, e. g. in the class TDialog (Argument error, operation '*', Trace Through: TDIALOG:NEW).

I think there are some incompatibilities between GTWVG and FiveWin that causes this crash?

If so, I think there is no chance to have a coexistant development environment between these two GUI's and no chance to migrate to FiveWin step by step :-)

Rewriting the complete app is opportune!

Can anyone confirm this theory?
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Newbie problem!?
Posted: Fri Mar 13, 2009 10:59 AM

Frank,

FiveWin should not be used with other GUI libraries, or there could be symbols conflicts, and crashes.

Its worth to rewrite some parts of your application, using FiveWin, so you can use all the FiveWin capabilities. FiveWin is very easy to understand and soon you will be mastering it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: Newbie problem!?
Posted: Mon Mar 16, 2009 09:18 AM

Antonio,

thank you very much for the positive and motivating words.

So first, I have to eliminate/replace all the GTWVG-Functionalities with the FiveWin matching parts.

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Newbie problem!?
Posted: Tue Mar 17, 2009 06:06 PM

Frank,

Yes, right. We are here to help you :-)

Please don't hesitate to post your questions here so we can help you in your migration

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion