Revision [14515]

This is an old revision of FaqPgWin32 made by DoS386 on 2009-11-05 23:42:59.

 




Windows:

Back to Table of Contents




FreeBASIC Windows questions


Which IDEs are available for Windows?
At the moment three full featured IDEs have been developed specifically for FB: FBIDE (not being updated, avoid using of old versions of FBC bundled with it), FBEdit and JellyFishPro. These IDEs require a minimum configuration -as path to the compiler- to work.
You can also download FBIDE and FBEdit as bundles (Editor+ Compiler) that install in a single operation. Notice the version of some of the components on these bundlesare not the latest available.
Commercial "general use" IDEs can be used with FreeBASIC but may require an extensive setup. They are handy for multi language programming, as they provide a unified user interface.
Instructions for installing FB JFish Pro, FBIDE, and FBEdit can be found here:
- IDE Installation guide for Windows

Back to top

Can I get rid of the console / 'DOS' screen in a graphics application?
Definitely. You have to give FreeBASIC the right command for it when you compile your program.

Back to top

My GUI program does nothing when run / The program compiles but I get a permission denied error in the linker
The problem may be related with the previous question. If a program tries to PRINT and it was compiled with "-s gui" it will freeze because no console is available. If the PRINT is issued before the first window is registered/opened, nothing will show in the screen or in the taskbar. The running program can only be seen in (and killed from) the task manager's processes tab. If a new compilation is tried before killing the process it will give a "Permission denied" error when the compiler tries to modify a still running .exe.
In Windows GUI programs do not use console commands. Use MessageBox or print to a log file to issue any error message to the user. Be sure any PRINT to console you used for debugging is not compiled in the final version.

Back to top

How to debug ?
FreeBASIC can use any debugger compatible with GNU GDB. Insight Win32 debugger is an user friendly wrapper for GDB.

Back to top

Why Windows refuses to run my code using OUT and/or INP?
Windows requires a driver to be installed to access the hardware ports. FB-Win32 programs using INP and OUT include a built-in driver that installs temporarily for a session. Windows allows only users with Admin rights to run driver installations. This means if you usually run your windows sessions without Admin rights, you will have to use the windows command line command RUNAS to run your program for the first time in each session so Windows allows it to install the driver.
If this behavior is not acceptable you can use an external library as PortIO32 that installs a permanent port driver.

Back to top

I get the error 'Cannot start blah.exe because xxxx.dll was not found.' or similar. What is missing?
You are trying to run a program using a third party library that resides in a dll not installed in your system.
FreeBASIC comes with the headers and wrappers required to code for a lot of third party libraries but does not provide the actual runtime dll files.
You have to download and install these from their home page. Find in the Links thread in the Libraries subforum the URL's of the home pages of the libraries provided. You need the binaries for Win32 of the libraries. If you want to develop programs with the libs you will need the documentation too.
When releasing compiled code it's good etiquette to provide the third party dll's required to run it.

Back to top

Does FreeBASIC work with Windows Vista ?
Yes. (Write me!!!)

Back to top

Where can I find some tutorials on programming the Windows GUI ?
See the answers to this question in this thread in the forum
More advanced use requires a frequent consultation of the reference at the Microsoft Developers Netework. A local install of the API reference is possible, search Microsoft for the Platform SDK (a huge download) and install just the documentation.

Back to top

Are there Windows GUI code builders for FB?
Yes there are some 3rd party developements generating Windows API code from a windows designer à la Visual Basic. None of them is Open source:
Jerry Fielden' Ezeegui uses a "graphical" textmode interface to let you build your code.
mrhx Software's VISG has a more classical user interface.
Less helpful may be the graphical resource editors generating scripts for the resource compiler. Any editor generating scripts compatible with GoRC can be used, as the one included with FBEdit. Graphical resource editors are a great help in designing dialogs and menus, but they leave to you the task of writing the window procedures required to make them active.


Back to top

See also:
Back to Table of Contents
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode