demo browse

demo browse

Postby brewster » Wed Jul 18, 2012 11:10 am

When trying to run any of the browses in the samples folder (dbf01,dbf02 or fwbrow etc. ), they compile fine, but when
trying to execute, they will get to the point of filling the onscreen browse box and hang with same error as below.

The .dbf files required are in the same folder (customer, clients, etc).
I am running XP.
SET files=99 in case

I found this snippet of code on the the forum that seems complete, but when trying to run, it will not execute.

As well, it comes up with "ERROR Base 1081 Argument error + from errorsys, line :0"

What am I missing ?





#include "Fivewin.ch"
#include "Tcbrowse.ch"


FUNCTION MAIN()

LOCAL oDlg, oBrw
LOCAL oCol

USE Customer ALIAS Test

DEFINE DIALOG oDlg SIZE 200 , 400

@ 0, 0 BROWSE oBrw

oCol := TcColumn():New( "First" , { || TEST->first } , , , , 0 , 60 , , , , , , , )
oBrw:addcolumn( oCol )

oCol := TcColumn():New( "Last" , { || TEST->last } , , , , 0 , 60 , , , , , , , )
oBrw:addcolumn( oCol )

oCol := TcColumn():New( "Age" , { || TEST->age } , , , , 2 , 60 , , , , , , , )
oBrw:addcolumn( oCol )

// oCol := TcColumn():New( "" , , , , , 0 , 10 , , , , , , , )
// oBrw:addcolumn( oCol )

oBrw:lCellStyle = .T.

ACTIVATE DIALOG oDlg;
ON INIT oDlg:SetControl( oBrw );
CENTER ;
VALID MsgYesNo( "Want to exit ?" )

CLOSE

RETURN NIL
brewster
 
Posts: 43
Joined: Wed Jun 20, 2012 4:07 am

Re: demo browse

Postby Antonio Linares » Wed Jul 18, 2012 12:01 pm

What FWH version are you using ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41324
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: demo browse

Postby brewster » Wed Jul 18, 2012 12:15 pm

Antonio,

FW from whatsnew.txt = Dec 6.12
Harbour = 3.0.0 Rev 16951
ilink32 = 6.21

You had recently teamviewed in to help with my initial Demo setup.


Bruce S.
brewster
 
Posts: 43
Joined: Wed Jun 20, 2012 4:07 am

Re: demo browse

Postby Antonio Linares » Wed Jul 18, 2012 3:41 pm

Bruce,

Please replace fiveh.lib with this one:

http://www.fivetechsoft.com/files/6.12/fiveh.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41324
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: demo browse

Postby brewster » Thu Jul 19, 2012 3:40 am

Antonio,

Replaced fiveh.dll with the the new one you sent and dbf01-03 & fwbrow- fwbrow2 browses all work fine, now.

On another note, when trying to run the calendar menu selection in any of the demos, I get an error message
" The application or DLL c:\fwh\Samples\BWCC.DLL is not a valid windows image. Please check this against your install disk "
I checked and BWCC.DLL and BWCC32.DLL are in the c:\fwh\samples folder.

The calculator option operates fine so I gather the WINEXEC() is functional, any ideas ?

Thanks for your help so far.
Bruce S
brewster
 
Posts: 43
Joined: Wed Jun 20, 2012 4:07 am

Re: demo browse

Postby brewster » Thu Jul 19, 2012 3:42 am

Antonio,
To correct that was supposed to be replaced fiveh.lib ... not fiveh.dll as I wrote on the last post.
Bruce
brewster
 
Posts: 43
Joined: Wed Jun 20, 2012 4:07 am

Re: demo browse

Postby Antonio Linares » Thu Jul 19, 2012 11:35 am

Bruce,

If you are testing some examples that use BWCC.DLL please check that this code is used:

LoadLibrary( "BWCC32.DLL" )
SET RESOURCES TO "example32.dll"
BWCCRegister( GetResources() )

DLL32 FUNCTION BWCCRegister( hInst AS LONG ) AS WORD PASCAL LIB "BWCC32.DLL"

instead of:

LoadLibrary( "BWCC.DLL" )
SET RESOURCES TO "example.dll"

(example is a sample name for a resources DLL if used)

If possible, better don't use Borland controls
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41324
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: demo browse

Postby DonDrew » Sun Apr 21, 2013 10:30 pm

It's loading now. I stripped out all but the most essential code. The problem was somewhere in the main PRG. Now I'll start rebuilding it one thin layer at a time.
DonDrew
 
Posts: 63
Joined: Mon Aug 02, 2010 5:38 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 17 guests