FireFly Visual Designer for FreeBASIC (Updated March 8, 2016)

User projects written in or related to FreeBASIC.
Post Reply
Kot
Posts: 336
Joined: Dec 28, 2006 10:34

Post by Kot »

Whrere's the download link? I can see only a changelog here http://www.sqlitening.com/support/index ... pic=3384.0
PaulSquires
Posts: 1012
Joined: Jul 14, 2005 23:41

Post by PaulSquires »

You need to be registered on the forum in order for the download link to display. The download is an attachment to that ChangeLog post.
mayankjohri
Posts: 7
Joined: Jun 04, 2010 12:22

Getting few errors

Post by mayankjohri »

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.
PaulSquires
Posts: 1012
Joined: Jul 14, 2005 23:41

Post by PaulSquires »

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. :-)
PaulSquires
Posts: 1012
Joined: Jul 14, 2005 23:41

Post by PaulSquires »

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.
Drago
Posts: 116
Joined: Aug 10, 2005 13:15

Post by Drago »

Hoi Paul,

that would be really great.

Is there a Grid Gadget in FireFly available ?

Or maybe you have a ListView Example which is set to Editable and allows to edit the SubItems ? :)

Regards
Rainer
PaulSquires
Posts: 1012
Joined: Jul 14, 2005 23:41

Post by PaulSquires »

Sorry - I don't have a grid control built in for FreeBasic. The PowerBasic version has 3 different grids. Maybe someday one of those grid authors will find a way to easily integrate their grids into FireFly for FB.
Drago
Posts: 116
Joined: Aug 10, 2005 13:15

Post by Drago »

are these PB Grids OpenSource ?
PaulSquires
Posts: 1012
Joined: Jul 14, 2005 23:41

Post by PaulSquires »

SIGrid - closed source/commercial. Does not seem to be developed or supported much these days.

EGrid32 - closed source/commercial. Actively developed and supported.

My Little Grid - commercial but source code is available to registered users.
jcfuller
Posts: 325
Joined: Sep 03, 2007 18:40

Post by jcfuller »

Doesn't RAGrid and an example come with the FbEdit package?
Not sure if it's usable with FF though?
James
MOD
Posts: 558
Joined: Jun 11, 2009 20:15

Post by MOD »

Just because the wx-c designer does not support grids, this don't mean, it's not available at all. There is a grid widgets, see the helpfile.
Drago
Posts: 116
Joined: Aug 10, 2005 13:15

Post by Drago »

Yes MOD,

i saw the Grid.....and for sure I will test and use it on a wx-Project...

but as always.... time is the limiting factor
PaulSquires
Posts: 1012
Joined: Jul 14, 2005 23:41

Post by PaulSquires »

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...
PaulSquires
Posts: 1012
Joined: Jul 14, 2005 23:41

Post by PaulSquires »

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.
fxm
Moderator
Posts: 12554
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Post by fxm »

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!
This specific link that you provided (http://www.freebasiccompiler.com/files/) points now to the old versions.
Can you update this, or put a dedicated link at your home page to the new standard zip archive?
Post Reply