Search found 6115 matches

by dodicat
Feb 20, 2020 20:38
Forum: Beginners
Topic: Abandoned source code compile issues.
Replies: 8
Views: 241

Re: Abandoned source code compile issues.

yes Integer 2 bytes -32,768 to 32,767 So short in fb. CMH seems to be using the command line. A good ide (fbide say) can do the code changes (integer to short) in a flash. I cannot easily download a sample file to test. The only game I have is Return to Castle Wolfenstein, which I haven't finished y...
by dodicat
Feb 20, 2020 13:03
Forum: Beginners
Topic: Abandoned source code compile issues.
Replies: 8
Views: 241

Re: Abandoned source code compile issues.

Thanks D.J.Peters. I did try loading some sound files, .wav and .mp3 to see what happened, nothing of course. I hope CMH can get it to work, there were many many compile errors in the raw vb file, but mostly because of mid$, format$, hex$. After I got rid of these suffixes the only job was making so...
by dodicat
Feb 19, 2020 21:32
Forum: General
Topic: strange graphic performance
Replies: 10
Views: 230

Re: strange graphic performance

Google Chrome renders sleep 1 to 1 millisecond.
by dodicat
Feb 19, 2020 21:30
Forum: Beginners
Topic: Abandoned source code compile issues.
Replies: 8
Views: 241

Re: Abandoned source code compile issues.

Here it is for fb, it compiles anyway #include "vbcompat.bi" Declare Function msgbox Alias "MessageBoxA"(n1 As long,s1 As zstring,s2 As zstring,n2 As long) As long:Sleep 1 Declare sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _ (ByRef hpvDest As Any, ByR...
by dodicat
Feb 19, 2020 19:45
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 436

Re: Simple tangent.

Extending badidea's polynomial. A polynomial can be differentiated term by term into a new polynomial. press space to refresh. Dim Shared As Integer xres,yres Dim Shared As Double lower Dim Shared As Double upper Dim Shared As Double xpos,ypos,min,max Redim Shared As Double d1(),d2() Screen 20 Scree...
by dodicat
Feb 19, 2020 13:15
Forum: General
Topic: strange graphic performance
Replies: 10
Views: 230

Re: strange graphic performance

In windows put this on top somewhere (below using fb say) Declare Function settimer Alias "timeBeginPeriod"(As Ulong=1) As Long Declare Function freetimer Alias "timeEndPeriod" (As Ulong=1) As Long then at sleep 10 use settimer Sleep(10) freetimer OR in Windows make sure you are ...
by dodicat
Feb 19, 2020 12:17
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 436

Re: Simple tangent.

Nice one badidea. I'll work on similar with varying coefficients and dimensions later. But will possibly take longer and > 40 lines. Carlos Herrera In shipbuilding, areas of water planes and volumes of the hulls were calculated by Simpsons rules rather than the trapezoidal rule. The half ordinates w...
by dodicat
Feb 18, 2020 22:32
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 436

Re: Simple tangent.

Badidea. I tried to get hold of the hidden fb sin, but no luck . . . declare function sine cecl alias "fb_SIN"(as double) as double (doesn't work) . . . I couldn't find a correct name decoration in the fb source code, so I gave up. UEZ I think that using f As function(as double) as double ...
by dodicat
Feb 18, 2020 15:53
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 436

Re: Simple tangent.

Hi dodicat, this example reminds me to the good old days at high school. I've a question. How can I understand this function? Function gradient(f As Function(As Double) As Double,x As Double) As Double static As Double dx=1e-6 Return (f(x+dx)-f(x))/dx End Function You have a function named gradient...
by dodicat
Feb 18, 2020 12:08
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24789

Re: FreeBASIC syntax challenge games

Thanks fxm, I missed it.
by dodicat
Feb 18, 2020 12:07
Forum: Beginners
Topic: How to get the Documents folder of the current Windows user.
Replies: 9
Views: 446

Re: How to get the Documents folder of the current Windows user.

Get all instances of a folder. (takes about 20 seconds here to look everywhere) File Not Found sometimes shows, just ignore it and wait until done shows. function findfolder(folder as string) As String dim as string s=" dir cd \ /ad /b /S" Var f=Freefile Dim As String tmp Open Pipe s For I...
by dodicat
Feb 17, 2020 13:30
Forum: Community Discussion
Topic: FreeBASIC syntax challenge games
Replies: 415
Views: 24789

Re: FreeBASIC syntax challenge games

What was your own solution to this latest challenge fxm?
sacho3 was pretty good at solving your challenges, but it has been nearly a year since he last posted, I hope he hasn't joined the growing ranks of the gone for good.
by dodicat
Feb 17, 2020 12:47
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 436

Simple tangent.

A continuation from squares and srvaldez's link to calculus https://www.youtube.com/watch?v=WUvTyaaNkzM&list=PLZHQObOWTQDMsr9K-rj53DwVRMYO3t5Yr Chapter 2 Const pi=4*Atn(1) Dim Shared As Integer xres,yres Dim Shared As Double lower,upper,ratio Dim Shared As Double fx(1 To 9) 'coefficients for FN(...
by dodicat
Feb 16, 2020 14:04
Forum: Windows
Topic: Richedit control - margin with line numbers
Replies: 23
Views: 693

Re: Richedit control - margin with line numbers

I'll try oxygen basic on my old machine (XP), maybe the executable won't get binned there.
But on my win 10, if gets ditched by avira it stays ditched and is not easy to convince avira otherwise.
by dodicat
Feb 16, 2020 1:27
Forum: Tips and Tricks
Topic: Flowing Image v0.2
Replies: 14
Views: 495

Re: Flowing Image v0.1

UEZ
I use the .zip downloads for fb.
zlib1.dll is in bin/win32 folder but I don't see it in the 64 bit fb.
So it cannot be accessed by source code unless the code is in bin/win32.
I don't see any zlib in the lib folders.

Go to advanced search