Search found 9158 matches

by fxm
Nov 10, 2010 7:56
Forum: General
Topic: [solved] FreeBASIC IDE : Property browser for UDT
Replies: 2
Views: 527

[solved] FreeBASIC IDE : Property browser for UDT

Is there a FreeBASIC IDE that has a "Property browser" as for Subs or Functions, to be able to point directly to the code of any property of UDT ?
by fxm
Oct 27, 2010 7:35
Forum: General
Topic: Read in a file format
Replies: 5
Views: 706

In order to search sequentially several different things in a the file, you are not obliged to close then reopen the file at each new search. You can before each search reset the position of the next read/write operation on the file at its begin, using the instruction : Seek [#]filenum, position wit...
by fxm
Oct 13, 2010 20:19
Forum: General
Topic: [solved] Pointing to UDT array first
Replies: 11
Views: 882

It seems that only the first data of the Udt is cleared : Type Udt Value1 As Integer Value2 As Integer Value3 As Integer End Type Dim x As Udt Ptr = New Udt(9, 10, 11) Print x->Value1, x->Value2, x->Value3 Delete x Print x->Value1, x->Value2, x->Value3 Sleep Same behavior with New[] and Del...
by fxm
Oct 13, 2010 19:56
Forum: General
Topic: [solved] Pointing to UDT array first
Replies: 11
Views: 882

It seems that only the first data of the Udt is cleared :

Code: Select all

Type Udt
  Value1 As Integer
  Value2 As Integer
  Value3 As Integer
End Type

Dim x As Udt Ptr = New Udt(9, 10, 11)
Print x->Value1, x->Value2, x->Value3
Delete x
Print x->Value1, x->Value2, x->Value3
Sleep
by fxm
Oct 13, 2010 17:03
Forum: General
Topic: [solved] Pointing to UDT array first
Replies: 11
Views: 882

In my short example, Array() is just an array of pointers of type UDT. Each element of this array is a pointer which allows to address the memory and its structure allocated by the instruction "NEW". The instruction "DELETE" free the memory created by the corresponding instruction "NEW", but this me...
by fxm
Oct 12, 2010 20:01
Forum: General
Topic: [solved] Pointing to UDT array first
Replies: 11
Views: 882

Very small example using "NEW" operator to dynamically allocate memory and construct data (array in this case) of a specified type (and "DELETE" to free object created with "NEW") : TYPE UDT Element1 AS INTEGER Element2 AS INTEGER Element3 AS INTEGER END TYPE REDIM Array(0) AS UDT PTR Array&...
by fxm
Oct 09, 2010 9:35
Forum: General
Topic: Closing a graphical window by clicking at the red cross
Replies: 2
Views: 829

In documentation, see item : - Screen (Graphics) - MultiKey - Frequently Asked FreeBASIC Graphics Library Questions While in windowed mode, clicking on the window close button will add a keypress of Chr(255)&"k" to the Inkey buffer. FAQ : How can I make the 'x' button in the window header close ...
by fxm
Oct 07, 2010 16:14
Forum: Beginners
Topic: problem
Replies: 21
Views: 2492

In FreeBASIC, we can emulate the "sound" instruction from QuickBasick, using the win API "Beep" (Windows 98, 2000, XP, ...?). See example below : Declare Function Sound Alias "Beep" (Byval BeepFrequencyHertz AS Integer, Byval BeepDurationMilliSeconds AS Integer) As Integer Common S...
by fxm
Oct 05, 2010 7:04
Forum: General
Topic: Screen problem inqb dialect
Replies: 6
Views: 868

The problem is for win32 target : Command executed: "d:\Documents and Settings\t0003830\Mes documents\FreebasicFBC021.1_test100811+dos(bin+lib)\fbc.exe" "d:\Documents and Settings\t0003830\Mes documents\FBIde0.4.6\FBIDETEMP.bas" -exx -arch 686 -w pedantic Compiler output: d:\Documents and Settings\t...
by fxm
Oct 04, 2010 10:35
Forum: General
Topic: Screen problem inqb dialect
Replies: 6
Views: 868

It works up to FreeBASIC 020.0.
Compilation becomes failed from FreeBASIC 021.0, then FreeBASIC 021.1.
by fxm
Sep 29, 2010 20:08
Forum: Tips and Tricks
Topic: very basic GUI(Buttons,unmovable windows and TextBoxs)
Replies: 6
Views: 2182

After a long time of running : Aborting due to runtime error 12 ("segmentation violation" signal) in d:\Documents and Settings\t0003830\Mes documents\FBIde0.4.6\FBIDETEMP.bas:: BUTTON() In order to avoid CPU hogging or eventual run-time error due to memory lack (after a long time of running), you mu...
by fxm
Sep 28, 2010 11:26
Forum: Tips and Tricks
Topic: Quad Precision
Replies: 58
Views: 7379

the problem was in the function quad_string , due to the fact that the FB function Int does not return the floor of the value as is stated in the manual. I updated the code to use the crt function floor and it seems to be working OK, the posts are updated. I am surprised because I am convinced that...
by fxm
Sep 25, 2010 9:14
Forum: DOS
Topic: FreeBASIC-dos SVN-Daily-Build at FreeBASIC-portal.de
Replies: 5
Views: 2588

FreeBASIC-dos SVN-Daily-Build at FreeBASIC-portal.de

Since Jun 9, there is no more any SVN-Daily-Build of FreeBASIC-dos at FreeBASIC-portal.de : http://www.freebasic-portal.de/download ... uilds.html

Does anyone know why ?
This build will it again ?
by fxm
Sep 22, 2010 10:42
Forum: Beginners
Topic: Font Size : How do I change it
Replies: 11
Views: 1541

by fxm
Sep 20, 2010 16:35
Forum: Projects
Topic: Different language keyboards
Replies: 17
Views: 2518

Being very optimistic:
Try your for loop up to 255 !

Go to advanced search