Newbie problem!?

Newbie problem!?

Postby frose » Thu Mar 12, 2009 8: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Newbie problem!?

Postby Enrico Maria Giordano » Thu Mar 12, 2009 9:05 am

Try to not include Fivewin.ch.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Newbie problem!?

Postby frose » 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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Newbie problem!?

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Newbie problem!?

Postby frose » Thu Mar 12, 2009 1: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Newbie problem!?

Postby Enrico Maria Giordano » Thu Mar 12, 2009 1:47 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Newbie problem!?

Postby frose » Thu Mar 12, 2009 4: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 :(
Last edited by frose on Mon Mar 16, 2009 9:15 am, edited 1 time in total.
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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Newbie problem!?

Postby frose » Thu Mar 12, 2009 5: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Newbie problem!?

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Newbie problem!?

Postby frose » Mon Mar 16, 2009 9: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Newbie problem!?

Postby Antonio Linares » Tue Mar 17, 2009 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 79 guests