Page 1 of 1

demo browse

PostPosted: Wed Jul 18, 2012 11:10 am
by brewster
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

Re: demo browse

PostPosted: Wed Jul 18, 2012 12:01 pm
by Antonio Linares
What FWH version are you using ?

Re: demo browse

PostPosted: Wed Jul 18, 2012 12:15 pm
by brewster
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.

Re: demo browse

PostPosted: Wed Jul 18, 2012 3:41 pm
by Antonio Linares
Bruce,

Please replace fiveh.lib with this one:

http://www.fivetechsoft.com/files/6.12/fiveh.lib

Re: demo browse

PostPosted: Thu Jul 19, 2012 3:40 am
by brewster
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

Re: demo browse

PostPosted: Thu Jul 19, 2012 3:42 am
by brewster
Antonio,
To correct that was supposed to be replaced fiveh.lib ... not fiveh.dll as I wrote on the last post.
Bruce

Re: demo browse

PostPosted: Thu Jul 19, 2012 11:35 am
by Antonio Linares
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

Re: demo browse

PostPosted: Sun Apr 21, 2013 10:30 pm
by DonDrew
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.