Search found 64 matches
- Jan 29, 2008 19:47
- Forum: Libraries
- Topic: Who know how use FB swig?
- Replies: 10
- Views: 3858
IUP-CM-SOIL
Thanks a lot. I have downloaded SOIL and it works quite fine. The only drawback is the dependency to OpenGL, but that's not that bad. Then we have a full set of libraries for making Gui and incorporating images. I'll plan to post a bit of code and some explanations on that subjects later on. Be pati...
image array IUM
Thanks for your suggestion. I have experimented a bit and I think that the correct expression is: *((*myImage).data). It compiles fine anyway. But it still generates an execution error. I'm suspecting a problem with the way C and FreeBASIC store array. I have a very simplistic solution which is to u...
IUP-CD-IM
I'm playing with IUP and I managed to make it work with CD for drawing in canvas. Now I'm trying to make it work with the IM lib for displaying images in canvas. Unfortunately I'm stuck...I have converted the header of IM lib with swig, and it seems that it works. The trouble is that there is a imIm...
- Jan 22, 2008 20:29
- Forum: Libraries
- Topic: IUP and CD
- Replies: 1
- Views: 1027
Solved...at most
I finally devised a very crude example showing how IUP and CD interact. I like to refine it a little more. If you're in a hurry, just ask here. I'll send you my code as is.
Regards.
Luis
Regards.
Luis
- Jan 22, 2008 14:39
- Forum: Libraries
- Topic: IUP and CD
- Replies: 1
- Views: 1027
IUP and CD
Does anybody has a working example of using a CD canvas within a IUP dialog?
Either for displaying an image or drawing text or lines?
Would be highly appreciated.
Best regards
Luis
Either for displaying an image or drawing text or lines?
Would be highly appreciated.
Best regards
Luis
- Jan 21, 2008 1:07
- Forum: Libraries
- Topic: IUP headers
- Replies: 7
- Views: 3111
Corrected code
Sorry, for my previous post, I finally managed to make it work. I'm not sure it's the perfect solution... First change all the declaration of functions in the ICallback as follows: from: Function btn_append_cb () As Integer to: Function btn_append_cb cdecl ( byval self as Ihandle ptr ) As Integer Se...
- Jan 20, 2008 23:55
- Forum: Libraries
- Topic: IUP headers
- Replies: 7
- Views: 3111
Working IUP2.6 example
Would you be kind enough for posting the corrected example?
I'm a bit lost for making it works.
Thanks so much.
Luis
I'm a bit lost for making it works.
Thanks so much.
Luis
- Dec 02, 2007 19:22
- Forum: Tips and Tricks
- Topic: Square Roots: Babylonian Style!!
- Replies: 15
- Views: 5272
Generalized Newton Method
In France there is a generic algorithm named Generalized Newton Method: Let x_n an estimated of X such that f(X)=a. If x_n is close enough we can consider that a small h added to x_n will reach X, then, at first order: f(x_n+h)=f(x_n)+g(x_n).h with g(x) the first derivative of f: d/dx[f(x)] Then h=[...
- Aug 10, 2007 21:45
- Forum: Libraries
- Topic: 018.1 and Wx-c Examples
- Replies: 2
- Views: 1455
Wx-c Examples and 018
I have solved the problem, who was apparently related with FbIde calling ld.exe with a wrong parameter. I reinstall everything FbIde and FB from 0.17 to 018. Works fine now. I have checked with wx-c.dll as you indicated and with the one provided in the .NET package. Works in both cases. Regards. Luis
- Aug 10, 2007 9:07
- Forum: Libraries
- Topic: 018.1 and Wx-c Examples
- Replies: 2
- Views: 1455
018.1 and Wx-c Examples
Version 018.1 of compiler produces a strange bug on wx-c examples.
First compilation and execution of examples run fine. But if recompilation is done, exe files remain locked as if not properly killed in memory at exit.
Any clue?
Regards.
First compilation and execution of examples run fine. But if recompilation is done, exe files remain locked as if not properly killed in memory at exit.
Any clue?
Regards.
- Jul 25, 2007 23:46
- Forum: General
- Topic: Recent compiler Seg Faults
- Replies: 8
- Views: 1765
- Jul 25, 2007 22:23
- Forum: Windows
- Topic: Compiler fail on wx-c
- Replies: 3
- Views: 1465
In my mind ;-)
Segmentation fault
- Jul 25, 2007 20:25
- Forum: Windows
- Topic: Compiler fail on wx-c
- Replies: 3
- Views: 1465
Compiler fail on wx-c
On win XP SP2 with the latest build of fbc, compilation fail on E:\Langage\FreeBasic\examples\wx-c\wx-c.demo.bas and mdi.bas
sizers.bas compile and run fine
wx-c.dll is the last version from wx.net cvs
Failure doesn't occur with 0.17b stable.
Regards.
sizers.bas compile and run fine
wx-c.dll is the last version from wx.net cvs
Failure doesn't occur with 0.17b stable.
Regards.
- Jul 24, 2007 20:24
- Forum: General
- Topic: A problem with using ATN and ATAN2 functions
- Replies: 10
- Views: 2239
atan2
Atan2 works correctly and provides an angle in [-pi,pi].If you are not confortable with negative values just test for <0 and add 2*Pi. That simple. Beware that standard coordinates on screen are: origin :top left corner y axis : from top screen to down. The more y increases the lower you are on the ...