How to make Windows applications using freebasic ?

New to FreeBASIC? Post your questions here.
renzo461
Posts: 2
Joined: Mar 01, 2008 2:06

How to make Windows applications using freebasic ?

Postby renzo461 » Mar 17, 2008 22:02

can you make windows application using freebasic ?
D.J.Peters
Posts: 8023
Joined: May 28, 2005 3:28
Contact:

Postby D.J.Peters » Mar 17, 2008 23:16

i'm sure you too but can you use the windows forum section too? :-)

Joshy
Blue
Posts: 17
Joined: Aug 29, 2007 16:56

Postby Blue » Mar 17, 2008 23:17

Well, when you make an FB program, it is a windows application. You're just running it in a console window. If you want a fancy window, then start off your program like this:

Code: Select all

Screen 7


And then compile with -s gui.

Also, if you want to have specific dimensions, use this command:

Code: Select all

Screenres A, B, 8


A is the height, B is the width.
tinram
Posts: 88
Joined: Nov 30, 2006 13:35
Location: UK

Postby tinram » Mar 18, 2008 23:31

You certainly can make a Win API application (I think that's what you meant) with FreeBASIC. I made my first (and only) one from an example file in the FreeBASIC windows examples directory. Coding the application in FreeBASIC is probably a lot easier than in C, but I still found it quite a steep learning curve.

You may find MichaelW's post very useful:
http://www.freebasic.net/forum/viewtopic.php?t=5667&highlight=accelerator for help on inline menus, accelerator keys, and other code examples. The MSDN website is also very useful (if at times frustrating).

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 4 guests