FireFly Visual Designer for FreeBASIC (Updated March 8, 2016)
-
- Posts: 1012
- Joined: Jul 14, 2005 23:41
-
- Posts: 7
- Joined: Jun 04, 2010 12:22
Getting few errors
Hello,
I am writing a program which will work as Synaptic Package Manager for MS Windows.
The program uses sqlite3 for database and Firefly for GUI.
From past few days, I am getting following error messages while compiling.
---------------
FreeBASIC Compiler - Version 0.23.0 (08-14-2011) for win32 (target:win32)
Copyright (C) 2004-2011 The FreeBASIC development team.
Configured as standalone
objinfo enabled using FB BFD header version 217
compiling: CODEGEN_AVMCLIENT_MAIN.bas -o CODEGEN_AVMCLIENT_MAIN.asm
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(64) error 190: Fields cannot be named as keywords in TYPE's that contain member functions or in CLASS'es, found 'Shared' in 'Dim Shared avaapps As apps'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(65) error 18: Syntax error, found 'installedApps' in 'Dim Shared installedApps As apps'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(66) error 18: Syntax error, found 'client_flag' in 'Dim Shared client_flag As bool'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(67) error 18: Syntax error, found 'serverdb' in 'Dim Shared serverdb As String'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(167) error 3: Expected End-of-Line, found '.' in 'Declare Sub apps.addInstalledApp(appname As String, appid As String, version As String, apptype As String)'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(273) error 20: Expected 'END TYPE' or 'END UNION' in 'ByRef TheText As String) As Integer'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(160) error 41: Variable not declared, FF_Parse in 'hFont = FF_MakeFontEX( FF_Parse(sFont, ",", 1), _'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(160) error 55: Type mismatch, at parameter 1 (sFont) of FF_MAKEFONTEX() in 'hFont = FF_MakeFontEX( FF_Parse(sFont, ",", 1), _'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(257) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(284) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(312) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(315) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(347) warning 14(0): Function result was not explicitly set
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_CLIENTBAS_MODULE.inc(50) error 18: Syntax error, found 'Property' in 'Declare Property getServerDB() As String'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_CLIENTBAS_MODULE.inc(51) error 18: Syntax error, found ':' in 'Private:'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_CLIENTBAS_MODULE.inc(51) error 123: Too many errors, exiting
---------------
The entire source code can be downloaded from http://appvrepo.svn.sourceforge.net/vie ... t/code.zip .
Can anyone help me, find what I am doing wrong.
I am writing a program which will work as Synaptic Package Manager for MS Windows.
The program uses sqlite3 for database and Firefly for GUI.
From past few days, I am getting following error messages while compiling.
---------------
FreeBASIC Compiler - Version 0.23.0 (08-14-2011) for win32 (target:win32)
Copyright (C) 2004-2011 The FreeBASIC development team.
Configured as standalone
objinfo enabled using FB BFD header version 217
compiling: CODEGEN_AVMCLIENT_MAIN.bas -o CODEGEN_AVMCLIENT_MAIN.asm
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(64) error 190: Fields cannot be named as keywords in TYPE's that contain member functions or in CLASS'es, found 'Shared' in 'Dim Shared avaapps As apps'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(65) error 18: Syntax error, found 'installedApps' in 'Dim Shared installedApps As apps'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(66) error 18: Syntax error, found 'client_flag' in 'Dim Shared client_flag As bool'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(67) error 18: Syntax error, found 'serverdb' in 'Dim Shared serverdb As String'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(167) error 3: Expected End-of-Line, found '.' in 'Declare Sub apps.addInstalledApp(appname As String, appid As String, version As String, apptype As String)'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_DECLARES.inc(273) error 20: Expected 'END TYPE' or 'END UNION' in 'ByRef TheText As String) As Integer'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(160) error 41: Variable not declared, FF_Parse in 'hFont = FF_MakeFontEX( FF_Parse(sFont, ",", 1), _'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(160) error 55: Type mismatch, at parameter 1 (sFont) of FF_MAKEFONTEX() in 'hFont = FF_MakeFontEX( FF_Parse(sFont, ",", 1), _'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(257) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(284) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(312) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(315) warning 2(1): Passing pointer to scalar, at parameter 4 of SENDMESSAGE()
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_UTILITY.inc(347) warning 14(0): Function result was not explicitly set
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_CLIENTBAS_MODULE.inc(50) error 18: Syntax error, found 'Property' in 'Declare Property getServerDB() As String'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_CLIENTBAS_MODULE.inc(51) error 18: Syntax error, found ':' in 'Private:'
D:\working\sf\avm\appmanager\amClient\v2\release\CODEGEN_AVMCLIENT_CLIENTBAS_MODULE.inc(51) error 123: Too many errors, exiting
---------------
The entire source code can be downloaded from http://appvrepo.svn.sourceforge.net/vie ... t/code.zip .
Can anyone help me, find what I am doing wrong.
-
- Posts: 1012
- Joined: Jul 14, 2005 23:41
I am finally looking at the generated source code more closely to eliminate all of those WARNINGs from the compiler.
Safe to say, the majority of the warnings are the result of me not using the correct type (eg. HANDLE, HWND, HFONT, HACCEL, etc...). In PowerBASIC, all I needed to use was a DWord variable (32-bit integer) and it would handle just about everything. In FreeBasic, the DIM'ing of the right variable type is more important (which I totally agree with). I just need to change my mindset to get into that habit.
I should have a new version of FireFly for FreeBasic ready soon that will have much more polished code generation.
The more I use FB, the more I love it. :-)
Safe to say, the majority of the warnings are the result of me not using the correct type (eg. HANDLE, HWND, HFONT, HACCEL, etc...). In PowerBASIC, all I needed to use was a DWord variable (32-bit integer) and it would handle just about everything. In FreeBasic, the DIM'ing of the right variable type is more important (which I totally agree with). I just need to change my mindset to get into that habit.
I should have a new version of FireFly for FreeBasic ready soon that will have much more polished code generation.
The more I use FB, the more I love it. :-)
-
- Posts: 1012
- Joined: Jul 14, 2005 23:41
I just finished working through all of the FireFly code generation and I have fixed all of the areas that resulted in compiler warnings. There sure was a lot of them. :-) I also worked through all of the FireFly functions in the built in code library to eliminate warnings from them as well.
I am working on some projects to be included as examples. For example, Listview, Treeview, Toolbars, Menus, etc...
Hopefully have a new download ready soon.
I am working on some projects to be included as examples. For example, Listview, Treeview, Toolbars, Menus, etc...
Hopefully have a new download ready soon.
-
- Posts: 1012
- Joined: Jul 14, 2005 23:41
-
- Posts: 1012
- Joined: Jul 14, 2005 23:41
-
- Posts: 1012
- Joined: Jul 14, 2005 23:41
I would imagine that any grid available in DLL form can be used with FireFly. The only "problem" is that it would not be available at design time from within FireFly itself (ie. adding the grid to a form via drag & drop like other controls). You can still create the control in the WM_CREATE handler for the form and move it into place, configure it, etc...
-
- Posts: 1012
- Joined: Jul 14, 2005 23:41
Original post updated with new download information.
FireFly code generation totally re-written to prevent compiler warnings and scaler to pointer errors. This version is also based on the very latest commercial FireFly 3.50 version.
It comes in a simple rar archive. Simply unzip while preserving the folder structure (no installation program needed).
FireFly for FreeBasic is freeware. Good luck! Hope it helps Windows based FreeBasic programmers.
FireFly code generation totally re-written to prevent compiler warnings and scaler to pointer errors. This version is also based on the very latest commercial FireFly 3.50 version.
It comes in a simple rar archive. Simply unzip while preserving the folder structure (no installation program needed).
FireFly for FreeBasic is freeware. Good luck! Hope it helps Windows based FreeBasic programmers.
This specific link that you provided (http://www.freebasiccompiler.com/files/) points now to the old versions.PaulSquires wrote:Hi fxm,
I uploaded the files into a standard zip archive. You just need to be sure to preserve the folder structure when you unzip the contents.
Here is the link (1.82 megs): http://www.freebasiccompiler.com/files/ ... ebasic.zip
Good luck!
Can you update this, or put a dedicated link at your home page to the new standard zip archive?