Search found 8043 matches

by D.J.Peters
May 25, 2022 13:24
Forum: Projects
Topic: rqwork7 finaal release-beta version
Replies: 7
Views: 678

Re: rqwork7 finaal release-beta version

Only a hint in "gui.bas" you can define this macros once ! Joshy #ifdef RTL #macro DECLARE_PROPERTIES declare virtual function GetProperties as zstring ptr declare virtual function GetPropertyInfo(as string) as PELPropInfo declare virtual function GetProperty(as string) as zstring ptr decl...
by D.J.Peters
May 22, 2022 16:51
Forum: Documentation
Topic: Wiki improvements
Replies: 635
Views: 146810

Re: Wiki improvements

@fxm here are "how to create a *.def file from *.dll" and how to create a "*.dll.a" file directly from "*.dll" file. Create "*.def" file from "*.dll" file: x:\FreeBASIC\bin\win32\dlltool --dllname XXX.dll --output-def XXX.def x:\FreeBASIC\bin\win64\d...
by D.J.Peters
May 21, 2022 9:16
Forum: Beginners
Topic: Infinite loop -- simple trap for beginners like me
Replies: 4
Views: 251

Re: Infinite loop -- simple trap for beginners like me

The topic are head or feet controlled loop.

No for/next or while/wend loop can count an ubyte from 0 to 255 but with a do/loop you can ask for an overflow of a ubyte,ushort,ulong ....

Joshy

Code: Select all

Dim i As ubyte
do
  Print i,
  Sleep 10 : i+=1
loop until i=0
Print "Completed do loop"
Sleep
by D.J.Peters
May 11, 2022 16:36
Forum: Sources, Examples, Tips and Tricks
Topic: Old Demo from Amstrad CPC 6128 Disk's
Replies: 8
Views: 491

Re: Old Demo from Amstrad CPC 6128 Disk's

yes retro feelings :-) here are CPC on green monitor :lol: Joshy dim as long iWidth,iHeight,iPitch screeninfo iWidth,iHeight ' get screen size iWidth *=0.75 ' make it a bit smaller iHeight*=0.75 screenres iWidth,iHeight,8,2 ' setup two pages screenset 1,0 ' one work page and one visible page palette...
by D.J.Peters
May 06, 2022 9:11
Forum: Community Discussion
Topic: my best effort
Replies: 147
Views: 36161

Re: my best effort

R.I.P "owen" :-( ... no download ... fbcadcam with GTK: https://fbcadcam.org/beta/fbcadcam-2019-02-24.zip source code: https://fbcadcam.org/beta/fbcadcam-2019-02-24_FB_source-code-only.zip you have to execute "fbcadcam-2019-02-24.exe" from the "gtk+-bundle_3.8.2-20130704_win...
by D.J.Peters
Apr 28, 2022 3:30
Forum: Beginners
Topic: (SOLVED) Memory+wstring
Replies: 13
Views: 447

Re: (SOLVED) Memory+wstring

@caseih If the loader from the OS loads the app, a part of "virtual" memory are "pre" allocated (used or not). If you write over a self allocated buffer range (in real a bunch of allocated pages of 4/8/16KB each) does not crash your app at all. Or imagine you allocate 255 bytes b...
by D.J.Peters
Feb 26, 2022 13:34
Forum: Linux
Topic: Linux X11 Framework (X Windows System for FreeBASIC)
Replies: 18
Views: 9840

Re: Linux X11 Framework (X Windows System for FreeBASIC)

By the way 17 years ago all was declared for 32-bit only :-)
by D.J.Peters
Feb 25, 2022 8:40
Forum: Linux
Topic: Linux X11 Framework (X Windows System for FreeBASIC)
Replies: 18
Views: 9840

Re: Linux X11 Framework (X Windows System for FreeBASIC)

Roland Chastain wrote: Feb 21, 2022 5:13Is is still possible to get your X11 package?
NO X11 is a part of the FreeBASIC download and much more complete as the old stuff from 2005 (17 years ago !)

Joshy
by D.J.Peters
Jan 21, 2022 19:46
Forum: Linux
Topic: fbsound 1.1 crash
Replies: 4
Views: 456

Re: fbsound 1.1 crash

First does all tests in test folder works so far on your Linux box ?
Do you tryed fbound 1.2 (the latest version) also ?

Joshy
by D.J.Peters
Jan 21, 2022 17:33
Forum: Linux
Topic: fbsound 1.1 crash
Replies: 4
Views: 456

Re: fbsound 1.1 crash

if you need more than one MP3 file use FBS_Load_MP3File ! #include "../inc/fbsound_dynamic.bi" if FBS_Init()=false then print "Failed to init fbsound" beep:sleep:end 1 end if dim as integer hWave1 if FBS_Load_MP3File("test.mp3",@hWave1)=false then print "Failed to ...
by D.J.Peters
Jan 17, 2022 12:17
Forum: General
Topic: Windows 10 defender don't like this short program
Replies: 61
Views: 2888

Windows 10 defender don't like this short program

If I compile this code with latest fbc32.exe (gas) as 'readQSF.exe' Defender put it in quarantine I don't know why. Joshy type QSFChunk as string*4 ID as ulong Size end type function readBE16(byref p as ubyte ptr,byref nBytes as uinteger) as ushort if nBytes<2 then print "error: readBE16() out ...
by D.J.Peters
Jan 15, 2022 6:01
Forum: Libraries & Headers
Topic: FreeBASIC binding of Irrlicht 3D engine 1.8.6
Replies: 23
Views: 2201

Re: FreeBASIC binding of Irrlicht 3D engine 1.8.6

fixed some byval vs byref typos.

Joshy
by D.J.Peters
Jan 12, 2022 22:45
Forum: Community Discussion
Topic: FreeBASIC 1.09.0 Release
Replies: 238
Views: 25278

Re: FreeBASIC 1.09.0 Release

How the compiler can guess your number of bytes (> 1) to read, by passing it a dereferenced byte pointer corresponding to one byte, therefore why a warning? OK but if size isn't optional why no error/warning message ? By the way the FB compiler and runtime could do something like this ! Joshy #incl...