While sampling the projects using Firefly Ver 1.05 on my Win XP system I get an error 443 "TO Expected" when compiling the sample calculator project.
This error happens when the call is made to Freelibrary(ghWinXP_Lib).
I would be grateful if someone can you tell me why this is occuring and how to fix it. :roll:
I am assumming that you are using a PB compiler < 7.0, right?
PB 6 does not like the syntax without the Call keyword.
I will send you a private message with more....
What version of the PB Compiler do you have? I have XP and don't experience this error. I found the line you mention in Calc_Main.bas.
IF ghWinXP_Lib THEN CALL FreeLibrary(ghWinXP_Lib)
I can't remember exactly, but I thought there were problems with early PB Compilers and Functions returning values and Call statements, etc... I may be losing it though. If you don't have the latest, try updating to 1.04 and see if this happens. Make sure you got the newest samples too and copied them over the existing when you upgraded FF.
:P Appears Paul posted at the same time...so I guess I wasn't crazy.
Quote from: Roger Garstang
IF ghWinXP_Lib THEN CALL FreeLibrary(ghWinXP_Lib)
I believe that you are using a FireFly version with the "fix" already applied. I have sent Gian info on obtaining the fix as well.
Hi,
Thank you for the speedy response, I am using Power Basic Ver 7.00 and the latest Firefly ver 1.05 with Win XP.
Quote from: gian youngHi,
Thank you for the speedy response, I am using Power Basic Ver 7.00 and the latest Firefly ver 1.05 with Win XP.
That's odd. That error should not surface in PB 7. Try turing off Win XP Theme support in the "Environment Options".
Hi Paul,
Thank you for your continued response, sorry for my own delay. I did as you suggested and disabled the XP Theme Support in the Firefly Environment. No change I am sorry to say. I still get Error 443 "TO Expected". etc etc.
I am definitely using PB 7.0 Win XP Professional and Firefly 1.05.
Regards
Gian Young
Dataman Barcode Systems Australia
Gian,
What FireFly version is showing in your "Help", "About" dialog? It should not say 1.05. The one I sent you the link for should say 1.06. I will send you the link again.
Hi Paul,
I do not know where you get the patience with us all. I have now uploaded Ver 1.06 and re-enabled XP Theme support in the environment.
Re compiled the Calculator sample and get an Error 519 "Missing Declaration" CLIPBOARDST
I Declared CLIPBOARDST As String as a Global in the DoCalc.Inc Module and the program now compiles and runs Ok.
The earlier error that started this dialog has now disappeared.
Thanks for your support and assistance, I do not know why the CLIPBOARDST requires declaring ?? but that is easy to overcome.
Am looking forward to the further evolution of Firefly.
Best Regards
Gian