Search found 1053 matches

by jevans4949
Nov 24, 2022 21:12
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 198054

Re: FLTK-C-1.3.3 for FreeBASIC

Is there any list of error codes for FLTK?
I'm trying to produce a printout, and I'm getting "Endpage - error 1" in a messagebox for each page. I produced a skeleton page built on the FL_Printer01 example, but it all went pear-shaped when I added my data file, and I get no output.
by jevans4949
Mar 31, 2022 12:57
Forum: Beginners
Topic: How to correctly return from a function?
Replies: 3
Views: 677

Re: How to correctly return from a function?

"Function=" has the advantage that you can set in to different values at various points while evaluating the input. It saves setting a variable and including it in the return statment.
by jevans4949
Dec 17, 2021 17:20
Forum: Community Discussion
Topic: Could FB use Eclipse OMR?
Replies: 12
Views: 1454

Re: Could FB use Eclipse OMR?

In reply to the original point: If the interface to OMR is compatible with C or stdcall, you can use it with Freebasic if you want. If it is C++, then Freebasic currently does not support this. Having looked at the Eclipse OMR websisite, most of it is yet to be written, so there is no documentation ...
by jevans4949
Oct 17, 2021 22:09
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 198054

Re: FLTK-C-1.3.3 for FreeBASIC

I solved my problem of displaying progess in file processing simply by adding an fl_wait() after updating my main display So you create the GUI and enters the message loop with Fl_Run() and inside your processing stuff you call Fl_Wait() right ? Joshy Yes. The FLTK bit is used to select the input a...
by jevans4949
Oct 17, 2021 19:56
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 198054

Re: FLTK-C-1.3.3 for FreeBASIC

I solved my problem of displaying progess in file processing simply by adding an fl_wait() after updating my main display, with the "outward" part of the postcode when it changed. Valuable to get an indication of progress when you're processing 30 million records. Next test, check I can ge...
by jevans4949
Oct 10, 2021 20:52
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 198054

Re: FLTK-C-1.3.3 for FreeBASIC

Thanks, I will look ai these.
by jevans4949
Oct 10, 2021 20:02
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 198054

Re: FLTK-C-1.3.3 for FreeBASIC

Can somebody advise me? I have written a process for a long file (the UK postcode CSV file) within a FLTK program. To reassure that it's still running I am trying to put in a progress "meter", to show the value of the file record I'm processing. I've tried using an fl_output field, but the...
by jevans4949
Sep 11, 2021 15:09
Forum: General
Topic: Short Single?
Replies: 17
Views: 2325

Re: Short Single?

I stand enlightened.
by jevans4949
Sep 11, 2021 14:19
Forum: General
Topic: Short Single?
Replies: 17
Views: 2325

Re: Short Single?

There is an IEEE specification for decimal (as opposed to binary) floating point numbers, but I don't know if anybody has ever implemented it, in software or hardware.
by jevans4949
Sep 11, 2021 10:27
Forum: General
Topic: Short Single?
Replies: 17
Views: 2325

Re: Short Single?

Another option worth considering is holding data in integers, but representing thousandths of whatever the variale is supposed to be. If you need to display these variables, write your own editing routine to place the decimal point and any leading zeros.
by jevans4949
Sep 10, 2021 17:13
Forum: General
Topic: Short Single?
Replies: 17
Views: 2325

Re: Short Single?

It's important to understand that a Single / Double is not held in decimal, but as a binary fraction, and one byte is taken by one bit for the sign and 7 bits for the power of 2 by which the fraction is to be raised. A single can hold a whole number up to a bit over 16 million decimal. Note also tha...
by jevans4949
May 07, 2021 19:40
Forum: General
Topic: openfilename
Replies: 25
Views: 3039

Re: openfilename

Thanks forthe information. Have not yet had time to check it out. I can understand ASM.
by jevans4949
May 06, 2021 15:20
Forum: General
Topic: openfilename
Replies: 25
Views: 3039

openfilename

I wrote this routine some while ago and it works in 32-bit mode.Problem is Micosoft made Getopenfilename and getsavefilename redundant from Windows Vista, so as far as I can see there is no 64-bit version. The suggested method is to use the Common Item Dialog. The example on the Microsoft website is...
by jevans4949
Feb 25, 2021 10:29
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 107
Views: 28411

Re: FreeBASIC 1.07 Release Discussion

It works!

Thank you for your quick response.
by jevans4949
Feb 24, 2021 17:41
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 107
Views: 28411

Re: FreeBASIC 1.07 Release Discussion

I have a problem with GAS64 when trying to compile a program including the fltk-c macros. Compilimg with GCC works OK but with GAS64 i get the following. fltktest.a64: Assembler messages: fltktest.a64:14804: Error: no such instruction: `found AN ERROR:BOP datatype not handled 01=528' fltktest.a64:14...