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
demo browse
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: demo browse
What FWH version are you using ?
Re: demo browse
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.
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.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: demo browse
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
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
Antonio,
To correct that was supposed to be replaced fiveh.lib ... not fiveh.dll as I wrote on the last post.
Bruce
To correct that was supposed to be replaced fiveh.lib ... not fiveh.dll as I wrote on the last post.
Bruce
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: demo browse
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
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
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.