Search found 6711 matches

by dodicat
Jan 15, 2021 21:12
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26157

Re: FreeBASIC 1.08 Development

jj2007 The starting page for FreeBASIC is https://www.freebasic.net/ Then a new member would go to downloads/ files (as with most projects) Then on that page you have fbedit and fbide as editors to get started. I don't think the forum page would be an automatic starting point, although regular users...
by dodicat
Jan 13, 2021 16:05
Forum: General
Topic: Why is there a Known Compiler Bug from 2012 still in?
Replies: 12
Views: 370

Re: Why is there a Known Compiler Bug from 2012 still in?

I have some cross products here. Type v3 As Single x,y,z As Ulong col flag As Long Declare Function length As Single Declare Function unit As v3 End Type Type Line As v3 v1,v2 End Type #define cross ^ #define dot * Operator + (Byref v1 As v3,Byref v2 As v3) As v3 Return Type(v1.x+v2.x,v1.y+v2.y,v1.z...
by dodicat
Jan 11, 2021 21:43
Forum: Beginners
Topic: Geany Compler Errors
Replies: 3
Views: 129

Re: Geany Compler Errors

I think you'll need to get them from your repository. Here are the first few lines of fbgfx.bi #ifndef __fbgfx_bi__ #define __fbgfx_bi__ #inclib "fbgfx" #ifdef __FB_WIN32__ #inclib "gdi32" #inclib "winmm" #inclib "user32" #elseif defined(__FB_LINUX__) #libpath...
by dodicat
Jan 09, 2021 10:02
Forum: General
Topic: Pentacles
Replies: 42
Views: 1954

Re: Pentacles

I believe basiccoder2 was interested in this.
He has some sort of device in his shed.
https://www.freebasic.net/forum/viewtopic.php?f=8&t=22859&p=201275&hilit=%2Ahoover%2A#p201275
by dodicat
Jan 08, 2021 19:00
Forum: Tips and Tricks
Topic: Example using WinHTTP API to read out web page's code [Windows only]
Replies: 15
Views: 416

Re: Example using WinHTTP API to read out web page's code [Windows only]

Thanks UEZ. This is approximately it with disphelper. #define UNICODE #include "windows.bi" #include once "disphelper/disphelper.bi" type Chars FBChars as IDispatch ptr declare function Text() as string end type type doc FBdoc as IDispatch ptr declare function TextLines() as Char...
by dodicat
Jan 07, 2021 22:57
Forum: General
Topic: Pentacles
Replies: 42
Views: 1954

Re: Pentacles

What is the definition of a "mathematician" anyway?
Albert, you will have to go back thru circles and squares and rationalize your denominators tout suite.
by dodicat
Jan 07, 2021 22:45
Forum: Tips and Tricks
Topic: Example using WinHTTP API to read out web page's code [Windows only]
Replies: 15
Views: 416

Re: Example using WinHTTP API to read out web page's code [Windows only]

Hi UEZ. Do you have a 64 bit disphelper?? I use the 32 bit version now and then. I note that powershell can extract info, but it cannot accept & in the string. However your link is free of ampersands. Probably powershell has yet to evolve some. Function pipeout(Byval s As String="") By...
by dodicat
Jan 07, 2021 17:52
Forum: Tips and Tricks
Topic: Example using WinHTTP API to read out web page's code [Windows only]
Replies: 15
Views: 416

Re: Example using WinHTTP API to read out web page's code [Windows only]

Do you use the web page from UEZ?
https://forum.qbasic.at/viewtopic.php?t=8996
Just copy and paste the address into the box and click OK
by dodicat
Jan 07, 2021 17:16
Forum: Tips and Tricks
Topic: Example using WinHTTP API to read out web page's code [Windows only]
Replies: 15
Views: 416

Re: Example using WinHTTP API to read out web page's code [Windows only]

José, your code yields just "Online Color Constants version is v", for some reason. With the snippet below (using Extract$ ), I get "0.75", which seems more correct. include \masm32\MasmBasic\MasmBasic.inc Init Inkey Extract$(FileRead$("https://forum.qbasic.at/viewtopic.php...
by dodicat
Jan 07, 2021 12:54
Forum: Tips and Tricks
Topic: Example using WinHTTP API to read out web page's code [Windows only]
Replies: 15
Views: 416

Re: Example using WinHTTP API to read out web page's code [Windows only]

Thanks UEZ, I got this to work. I note that the German site page is unicode only. I had to fiddle about a bit to get a title by this method: #include "file.bi" dim as string g g += "Const TriStateTrue = -1 ' forUnicode support"+chr(10) g += "URL = InputBox(""Enter ...
by dodicat
Jan 02, 2021 0:12
Forum: General
Topic: Pentacles
Replies: 42
Views: 1954

Re: Pentacles

Welcome back Albert. Nice graphics. Your compressor could be aided by the surface waves. Screen 20 #define map(a,b,x,c,d) ((d)-(c))*((x)-(a))/((b)-(a))+(c) Dim As Single d,y Do d-=.01 Screenlock Cls For n As Long=0 To 1024 Var ypos=map(-1,1,Sin(n/75+d),600,700) Pset(n,ypos) If n=500 Then y=ypos Next...
by dodicat
Dec 19, 2020 23:16
Forum: Community Discussion
Topic: hey all, new programming language support gwbasic,freebasic
Replies: 86
Views: 3838

Re: hey all, new programming language support gwbasic,freebasic

Funny how some members are at the cutting edge of wanting to lock threads, they appear nearly every time, you could keep a book on it (bet). It is not a crime of course, and they are entitled to an opinion. For me it would be a very last resort to do this and I have never advocated it yet, and espec...
by dodicat
Dec 17, 2020 22:17
Forum: General
Topic: Help? Replace string throughout code
Replies: 6
Views: 250

Re: Help? Replace string throughout code

You could do it crudely. Function L(byval s As String,s1 As String="int ",s2 As String="integer ") As String 'SearchAndReplace Var position=Instr(lcase(s),s1),lens1=len(s1),lens2=len(s2) While position>0 s=Mid(s,1,position-1) & s2 & Mid(s,position+Lens1) position=Instr(po...
by dodicat
Dec 17, 2020 14:15
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 302
Views: 26157

Re: FreeBASIC 1.08 Development

Maybe it is the modern way, certainly python can be used via dll(s) https://www.freebasic.net/forum/viewtopic.php?f=14&t=27718&p=262155&hilit=%2Apython#p262155 Oxygen basic is a dll type compiler, Is Oxygen basic based on a freebasic dll? I remember something from a few years back, I thi...

Go to advanced search