I am trying to use xBrowse along with FWPPC. Unfortunately, I am getting the following link errors
FiveCEC.lib(XBROWSEC.obj) : error LNK2005: HB_FUN_XBRWSCROLLROW already defined in FiveCE.lib(XBROWSE.obj)
FiveCE.lib(XBROWSE.obj) : error LNK2001: unresolved external symbol HB_FUN_PALBMPFREE
FiveCE.lib(TREES.obj) : error LNK2001: unresolved external symbol HB_FUN_PALBMPFREE
Test.exe : fatal error LNK1120: 1 unresolved externals
* Linking errors *
Code: Select all
#include "fwce.ch"
#include "hbclass.ch"
#include "Directry.ch"
#include "xbrowse.ch"
*---------------------------------------------------*
FUNCTION Main()
*---------------------------------------------------*
Private oGetCustName,cCustName
Private cBarCode
Private oBtnScan,oBtnSave,oBtnClose
Private oWnd,oBrw,aBarCodes:={}
cCustName:=Space(30)
cBarCode:=Space(13)
DEFINE WINDOW oWnd TITLE "Anser Test"
@ 1.0,02 SAY "Customer :" SIZE 70, 20
@ 1.0,12 GET oGetCustName VAR cCustName SIZE 120, 20 OF oWnd
@ 04.2,01 BUTTON oBtnScan PROMPT "Scan" SIZE 80, 30 OF oWnd
@ 04.2,11 BUTTON oBtnSave PROMPT "Save File" SIZE 80, 30 OF oWnd
@ 04.2,22 BUTTON oBtnClose PROMPT "Close" SIZE 80, 30 OF oWnd ACTION oWnd:End()
@05,01 XBROWSE oBrw OF oWnd ;
COLUMNS {1} ;
HEADERS {"Code"} ;
ARRAY aBarCodeArr ;
SIZE 40,20 ;
FOOTERS CELL
ACTIVATE WINDOW oWnd
RETURN NIL
Regards
Anser