Search found 64 matches

by Bunuel66
Oct 09, 2006 22:31
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4734

FreePascal-FreeBasic Interface

Would suggest to use a DLL...FP is able to use and generate DLL.
by Bunuel66
Sep 27, 2006 21:57
Forum: Linux
Topic: Strange result at the Shootout
Replies: 9
Views: 2130

Size

Another strange stuff: I thought the problem went from the use of crt.bi due to the printf instruction. Then I modified a bit the code for using regular print. Strangely the memory used by the program increases from 732 Kb to 1180 Kb. I'm puzzled....

Luis
by Bunuel66
Sep 20, 2006 9:30
Forum: Beginners
Topic: decimal to fraction
Replies: 3
Views: 1480

Decimal to fraction

The optimal way for doing that transform is to use continuous fraction. Just have a look in the web, there is plenty of papers on that topic.
Optimality is in the sense that for a given length of numbers no other fraction will provide a better approximation.

Regards.

Luis
by Bunuel66
Sep 10, 2006 19:48
Forum: Projects
Topic: Circuit Simulator
Replies: 8
Views: 3464

Circuit simulator

May I suggest you to look at: http://www.linear.com/designtools/softw ... ration.jsp
This could save time and 'circuits'.....
Will not teach you programming but could be safer for your interfaces.

Regards.
by Bunuel66
Aug 28, 2006 10:02
Forum: General
Topic: Trigonometry Question
Replies: 4
Views: 875

Polygon

Lets consider a polygon with n sides of length d. It is necessary to define those two values for describing the polygon. Giving only the number of sides without the radius or distance between points is not enough. Let Phi be the angle limited by two consecutive points and the center of the polygon. ...
by Bunuel66
Aug 20, 2006 23:21
Forum: General
Topic: nasty bug?
Replies: 3
Views: 1011

NastyBug Work around

It seems that a simple workaround would be to use an intermediate variable for storing the result of c() and to use that variable as index for the array...
by Bunuel66
Jul 13, 2006 22:14
Forum: General
Topic: Array error
Replies: 8
Views: 1818

Where is the array....;-)

I was just a bit curious why using shared or redim would allow an array to be bigger. I just compare the @ of the array when declared as DIM... and as DIM SHARED. Apparently DIM alone make an allocation, on the stack, as if the array was declared in a sub or in a function, even if we are in the 'mai...
by Bunuel66
Jul 08, 2006 8:42
Forum: Beginners
Topic: why does this compile? (const) [answered]
Replies: 3
Views: 951

Type check

It would be nice, in a future release, to have an option for strict type check enforcement in FB. This would make programs less prone to errors induced by type mismatch.

Just a thought.

Luis
by Bunuel66
Jun 14, 2006 22:21
Forum: Libraries
Topic: IUPGL
Replies: 0
Views: 1783

IUPGL

As a byproduct of experimenting with the IUP gui toolkit I have build a iupgl.bi interface which allows for manipulationg a Canvas with OpenGL. It has not been widely tested but it seems to work. To the best of my knowledge there is no easy way for drawing in a iupCanvas with the IUP lib only. As I ...
by Bunuel66
Jun 13, 2006 22:53
Forum: Libraries
Topic: IUP Canvas
Replies: 9
Views: 4315

IUP Canvas & WID

Yes it is exactly the point. The IUP lib allows for creating Canvas but relies on external lib for drawing in it. For this reason I'm thinking of usinf Gfx already include in FB. I could try also with CD from the same origin as IUP, but I would need to write the interface file. Even if I have a rela...
by Bunuel66
Jun 13, 2006 21:38
Forum: Libraries
Topic: IUP Canvas
Replies: 9
Views: 4315

WID param

It is a handle who identifies the window in the native system (ie: WIn XP). This is an attribute of the element in IUP. The function IupGetAttribute allows for getting it. I think that gfx inetracts with gdi32 and that the instruction SCREEN can make use of the WID of the canvas created in IUP. Unfo...
by Bunuel66
Jun 13, 2006 19:52
Forum: Libraries
Topic: IUP Canvas
Replies: 9
Views: 4315

Canvas drawing

After contactinng peoples from IUP team it appears that it is possible to draw in a canvas using any drawing lib as long as it accepts to use the WID parameter of the canvas for identifying the place for drawing. FB has Gfx lib built in. I have had a look at the doc but i am not able to figure how t...
by Bunuel66
Jun 12, 2006 20:13
Forum: Libraries
Topic: IUP Canvas
Replies: 9
Views: 4315

IUP Canvas

Does somebody using IUP would explain how to draw points and lines or display animage within a Canvas. it seems that IUP expect that one uses CD lib but unfortunately it seems that this lib is not explicitely accessible from FB? CD is used for some controls drawings but it doesnt seems that the CD f...
by Bunuel66
Jun 10, 2006 20:48
Forum: Libraries
Topic: IUP Syntax
Replies: 2
Views: 2196

Thank you

Thank's for the explanation, I was thinking about that but I was confused by the fact that when removing the line jump leaving '_' I got a compilation error. Thanks again.

Luis
by Bunuel66
Jun 10, 2006 19:08
Forum: Libraries
Topic: IUP Syntax
Replies: 2
Views: 2196

IUP Syntax

I'm experimenting with IUP library. Looking to examples I noticed a stange syntax using the character "_". It's used when defining a dialog and it seems that "CR" after it matters. I have not been able to get the signification of that "_" within the FB documentation. If anybody would give some light...

Go to advanced search