CLASSES not recognized and fails compile

Started by Jonathan Bristow, April 01, 2005, 05:11:49 PM

Previous topic - Next topic

Jonathan Bristow

I know that i have possibly asked this before, must have been a while ago because My avatar is saying i only ever posted 2 messages to forum, and i know i have been bugging you lot alot more than that!  :oops:

I have definately downloaded the very latest win32api and other resource files from the powerbasic directory, and have installed them in the correct directory (That Firefly looks at).
However, whenever i compile my project, i get an error 460, "Undefined equate", "Or %ICC_STANDARD_CLASSES Or %ICC_ANIMATE_CLASS Or %ICC_DATE_CLASSES Or %ICC_HOTKEY_CLASS Or %ICC_INTERNET_CLASSES _"
I'm just at the end of my tether as to what is causing this failure at compile stage. Please help me (Again).

TechSupport

Check the file called "FireFly.ini" for the section called "[Compiler]"

Do the entries look something like the following:

PBCOMPILER1=C:\PBWin70\Bin\PBWIN.EXE
PBINCLUDE1=C:\PBWin70\WinAPI\
PBRES1=C:\PBWin70\Bin\PBRes.exe
RCCOMPILER1=C:\PBWin70\Bin\RC.exe
RCINCLUDE1=C:\PBWin70\WinAPI


Note the PBINCLUDE1 and RCINCLUDE1 entries must point to subdirectories. Most likely the WinAPI subdirectory. Ensure that those subdirectories point to the actual PB installation that you want to use. I know of customers that have PB 6.1, PB 7 and PB 8 as well as console compilers. It can be easy to accidently point to the wrong directory.

Jonathan Bristow

No, this does not appear to be at fault.
The version i downloaded from the PowerBasic site is...
Created: 20 November 2004, 18:31:09
Modified: 01 February 2005, 08:00:00
Accessed: 01 April 2005, 23:53:05
All the lines you provided are exactly as they are in the ini file.
Where is the % equates likely to be defined?
(I have looked in the win32api but they're not their)

Charles Dietz

Jonathan, I found these in c:\pbwin80\winAPI\CommCtrl.inc
also in c:\pbwin70\winAPI\CommCtrl.inc

%ICC_LISTVIEW_CLASSES   = &H00000001 ' listview, header
%ICC_TREEVIEW_CLASSES   = &H00000002 ' treeview, tooltips
%ICC_BAR_CLASSES        = &H00000004 ' toolbar, statusbar, trackbar, tooltips
%ICC_TAB_CLASSES        = &H00000008 ' tab, tooltips
%ICC_UPDOWN_CLASS       = &H00000010 ' updown
%ICC_PROGRESS_CLASS     = &H00000020 ' progress
%ICC_HOTKEY_CLASS       = &H00000040 ' hotkey
%ICC_ANIMATE_CLASS      = &H00000080 ' animate
%ICC_WIN95_CLASSES      = &H000000FF
%ICC_DATE_CLASSES       = &H00000100 ' month picker, date picker, time picker, updown
%ICC_USEREX_CLASSES     = &H00000200 ' comboex
%ICC_COOL_CLASSES       = &H00000400 ' rebar (coolbar) control
%ICC_INTERNET_CLASSES   = &H00000800
%ICC_PAGESCROLLER_CLASS = &H00001000 ' page scroller
%ICC_NATIVEFNTCTL_CLASS = &H00002000 ' native font control
%ICC_STANDARD_CLASSES   = &H00004000
%ICC_LINK_CLASS         = &H00008000