Search found 1134 matches

by jj2007
May 21, 2019 19:10
Forum: General
Topic: Resize a control dynamically in runtime using the mouse
Replies: 4
Views: 194

Re: Resize a control dynamically in runtime using the mouse

OK, that makes it WM_NCHITTEST plus subclassing. Note, though, that there is a reason why WS_THICKFRAME is so thick: it's difficult to hit a thin line with the mouse.
by jj2007
May 21, 2019 13:38
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

dodicat wrote:My origional code runs without any namespace.
Quite mysterious indeed. Here only the version with Dislin.xxx but without namespace works.
by jj2007
May 21, 2019 10:05
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

jj2007 with your code If I put namespace dislin #INCLUDE "dislin.bi" end namespace and put the underscores back on name and color your code runs fine. So what is going on with this namespace and underscore issue? I have no idea. Fact is that - it compiles and runs fine with the Dislin. me...
by jj2007
May 21, 2019 2:37
Forum: General
Topic: How do you interoperate with other applications using double-precision floating-point?
Replies: 15
Views: 378

Re: How do you interoperate with other applications using double-precision floating-point?

please show some math calculations (not jus the results) in MATLAB and the same in FB Right, results only don't make much sense. For your inspiration: Testl2e REAL10 1.442695040888963407 Testl2t REAL10 3.321928094887362348 TestPI REAL10 3.141592653589793238 Init fld Testl2e fld Testl2t fld TestPI f...
by jj2007
May 21, 2019 1:46
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

Trial and error and a sleepless night are the solution to all problems, hooray! Dodicat's original version (error 132: Too many errors, exiting): #INCLUDE "dislin.bi" dim as double current(...) = {120, 125, 122, 119, 134, 138, 141, 159, 162, 178} dim as double voltage(...) = {250, 210, 18...
by jj2007
May 21, 2019 1:23
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

@dodicat: Thanks, I got your program running after a while using WinFBE, but it fails on the DisLin examples. Same crappy error list as above. All my other stuff works just fine - for example, this Windows template: #Include "windows.bi" Dim Shared as Handle hEdit Function WndProc(hWnd As ...
by jj2007
May 20, 2019 20:11
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

Thank you all for your attempts to help me, but I am out . Most of these "additional" packages suffer from the same problems: they require environment variables to be set, specific folders, specific IDEs, no installation instructions, and conflicting advice from people who managed to get t...
by jj2007
May 20, 2019 18:58
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

I followed exactly the instructions and get this: gcc version 8.1.0 (2018) C:\FreeBasic\lib\DisLin\tmp\TmpFb.bas(6) error 41: Variable not declared, metafl C:\FreeBasic\lib\DisLin\tmp\TmpFb.bas(7) error 41: Variable not declared, disini C:\FreeBasic\lib\DisLin\tmp\TmpFb.bas(8) error 41: Variable not...
by jj2007
May 20, 2019 17:05
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

Go to the dislin page (https://www.mps.mpg.de/dislin/win-64-bit). You will find there the official distribution for Freebasic. No luck (I hate working with environment variables, but for the sake of testing this I set them...): *** compiling TmpFb.bas with -t 2000 -gen gcc -Wc -Ofast -s console (32...
by jj2007
May 20, 2019 15:19
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

dodicat wrote:Here is some dislin code for the original voltage over current display.
I found inc\dislin.bi but the linker is not happy: ld.exe: cannot find -ldismgc

I have also downloaded the MediaFire dislin.zip but there is no readme explaining where the files should end up, relative to fbc.exe.
by jj2007
May 19, 2019 10:29
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

@Aurel: Do you mean software or hardware, i.e. plot on a metal surface??? Challenge? ;-) Challenge? ;-) Absolutely! Just post the code that uses badidea's data and displays it as close as possible to his version ;-) Here is my version (complete source; the window is sizeable, ArrayPlotValues is opti...
by jj2007
May 16, 2019 18:45
Forum: General
Topic: using gnuplot in Windows
Replies: 13
Views: 413

Re: using gnuplot in Windows

Sorry if this is a stupid question: How would you display the plot inside an application, i.e. in a control or a window?
by jj2007
May 14, 2019 1:19
Forum: General
Topic: SSE & floating point
Replies: 7
Views: 255

Re: SSE & floating point

Two dedicated instructions are available (plus several non-dedicated ones like movq, movlps, movups etc): include \masm32\MasmBasic\MasmBasic.inc ; download .data s1 REAL4 11111.11111 s2 REAL4 22222.22222 s3 REAL4 33333.33333 s4 REAL4 44444.44444 s5 REAL4 55555.55555 Init movss xmm1, s1 movd xmm2, s...

Go to advanced search