Peter wrote: > I am trying to convert my Inventory program to FBtoC compliance and > get the following errors > > FBtoC: translating project Inventory Control.proj to > Inventory_Control.c > mkdir -p /Users/peter/Desktop/Current\ Programs/Inventory\ Control > \(30\)\ Folder\ copy/build_temp 2>&1 > ^ > •• Unknown function in line 95 of ListBox.incl: GetCRefCon > 95: long if (fn GetCRefCon(c) == 0) // not FB button already GetCRefCon() was a tbAlias, obsolete in FB5/FBtoC. Replace by the correct name GetControlReference() > •• Unknown variable type in line 90 of ListBox.incl: > FBcontrolDescription > 90: dim cRefCon as ^^FBcontrolDescription > > •• Unknown variable type in line 97 of ListBox.incl: > FBcontrolDescription > 97: cRefCon = fn NewHandleClear(SizeOf(FBcontrolDescription)) > ^ > •• Unknown constant in line 99 of ListBox.incl: FBcontrolRef > 99: cRefCon..FBcontrolRef = btnNum > ^ > •• Unknown constant in line 100 of ListBox.incl: FBcontrolClass > 100: cRefCon..FBcontrolClass = _buttonControlClass > ^ > •• Arithmetic expression expected in line 100 of ListBox.incl > 100: cRefCon..FBcontrolClass = _buttonControlClass > ^ > •• Unknown constant in line 101 of ListBox.incl: FBcntrlSubclass > 101: cRefCon..FBcntrlSubclass = _buttonSubclass > ^ > •• Unknown function in line 103 of ListBox.incl: AddFBControlToList > 103: fn AddFBControlToList(fn GetWRefCon(w), c, cRefCon) These all refer to implementation details for control handling by the old appearance runtime. There is no FBcontrolDescription in FB5/FBtoC. > •• Unknown function in line 137 of ListBox.incl: > GetListHorizontalScrollBar > 137: if listH then c = fn GetListHorizontalScrollBar(listH) > ^ > •• Unknown function in line 152 of ListBox.incl: > GetListVerticalScrollBar > 152: if listH then c = fn GetListVerticalScrollBar(listH) > ^ > •• Unknown function in line 171 of ListBox.incl: GetListDataBounds > 171: dum = fn GetListDataBounds(listH, r) > ^ > •• Unknown function in line 194 of ListBox.incl: GetListViewBounds > 194: dum = fn GetListViewBounds(listH, r) > ^ > •• Unknown function in line 400 of ListBox.incl: GetListCellSize > 400: dum = fn GetListCellSize(listH, cellSize) > ^ > •• Unknown function in line 420 of ListBox.incl: GetListCellSize > 420: dum = fn GetListCellSize(listH, cellSize) > ^ > •• Unknown function in line 545 of ListBox.incl: GetListViewBounds > 545: dum = fn GetListViewBounds(listH, r) > ^ > •• Unknown function in line 564 of ListBox.incl: GetListCellSize > 564: dum = fn GetListCellSize(listH, cellSize) > ^ > •• Unknown variable type in line 577 of ListBox.incl: ListDefSpec > 577: dim as ListDefSpec listDef These are functions in the Headers file Tlbx Lists.incl. The errors should be fixed by: include "Tlbx Lists.incl" Robert P.