Search found 1188 matches

by jj2007
Jun 06, 2019 13:24
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6788

Re: Creating (scientific) plots via gnuplot

jj2007 What do you mean "message loop"? In a typical C application, it looks like this: while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } GetMessage waits for an event . If there is no event (i.e. the user did not hit any key, did not move...
by jj2007
Jun 05, 2019 17:33
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6788

Re: Creating (scientific) plots via gnuplot

To ease the cpu workload I have tried opengl rendering (very easy to convert from fbgfx) It runs a bit better than fbgfx on this box. Indeed a lot faster, but to get cpu usage down to an acceptable level, you need something like Sleep regulate( 5 ,fps),1 on a Core i5. There is no proper message loo...
by jj2007
Jun 05, 2019 15:39
Forum: Windows
Topic: SuperEdt dll
Replies: 4
Views: 1192

Re: SuperEdt dll

What about one phrase explaining what it is?
by jj2007
Jun 05, 2019 1:59
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6788

Re: Creating (scientific) plots via gnuplot

That looks fantastic, dodicat! I expected loads of compiler errors but nope, it works out of the box. One minor point: cpu usage goes up 100% for one core, so apparently there is no proper message loop. Inserting a sleep(1000) between Do and Setup cools it down a little bit, but that is not really t...
by jj2007
May 29, 2019 14:24
Forum: Community Discussion
Topic: Own IDE and Freebasic license
Replies: 7
Views: 1336

Re: Own IDE and Freebasic license

Instead of bundling IDE & FB, you could also distribute only your IDE but then let it download and install the original FB package.
by jj2007
May 26, 2019 11:20
Forum: Projects
Topic: Fb minimal GUI
Replies: 11
Views: 2688

Re: Fb minimal GUI

I've included an else sleep 25 , in the main loop and the while conditional is (k = 0) . This means less CPU usage , previously using 100% of one of my cores ; I used htop to examine this. There may still be scope for improving this. If you see high cpu use in a Windows application, there is someth...
by jj2007
May 22, 2019 18:35
Forum: Projects
Topic: windows Multi-language Editor ( English;French;Spanish)
Replies: 71
Views: 18606

Re: windows Multi-language Editor ( English;French;Spanish)

#if 0
FreeBASIC
multi-line
comment
#endif
by jj2007
May 22, 2019 8:38
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6788

Re: Creating (scientific) plots via gnuplot

the official distribution for dislin is here https://www.mps.mpg.de/dislin/distributions that direction was already given on previous posts of that topic Right, it's where you find dl_11_fb.zip FreeBASIC 9534 KB 15-Mar-2019 This is what I am using, this is the one that refuses to work with the late...
by jj2007
May 22, 2019 7:57
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6788

Re: Creating (scientific) plots via gnuplot

in fact it is not mysterious at all, you simply do not have the same configuration... the old dislin.bi did not used namespace , it declared only the sub/functions and sometimes with alias for color , name ... to avoid duplicates to use the dislin static lib download the package for c/c++ 32 or 64 ...
by jj2007
May 21, 2019 19:10
Forum: General
Topic: Resize a control dynamically in runtime using the mouse
Replies: 4
Views: 298

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: 6788

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: 6788

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: 714

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: 6788

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...

Go to advanced search