Search found 5903 matches

by dodicat
Oct 15, 2019 22:40
Forum: General
Topic: Squares
Replies: 6987
Views: 421805

Re: Squares

Albert. Getting away from compression for a bit, I have the same problem with fbide on Linux, only graphics code will [quick] run from the ide. fbedit has exactly the same problem.(all in wine). To get a console just wine cmd You can navigate around the file system (Linux and all). But Linux files w...
by dodicat
Oct 14, 2019 22:25
Forum: General
Topic: Squares
Replies: 6987
Views: 421805

Re: Squares

Albert. I installed wine in Linux. I didn't use fbide but my little quickrunner as posted last week. It runs OK with fbc.exe (the windows distro), but not with fbc (The Linux distro). Seems I cannot run Linux executable files from within wine. If I try say ./somefile from within wine cmd I get a pil...
by dodicat
Oct 13, 2019 13:34
Forum: Beginners
Topic: Controlling the window size of a compiled program?
Replies: 15
Views: 554

Re: Controlling the window size of a compiled program?

If you have a console numerical/statistical program, you wouldn't expect users to re do their console from cmd.exe properties appearance each time to run it. They would need to write down all their settings, change to your preference, then re-set to their original settings when they are done. In ess...
by dodicat
Oct 13, 2019 10:27
Forum: General
Topic: Squares
Replies: 6987
Views: 421805

Re: Squares

If you use single for v1 then it cannot fully represent ulong.
Double will get every ulong . (You could accurately use double for a 32 bit colour for instance).
If you use double then print culng(v1) will get back everything.
by dodicat
Oct 12, 2019 16:36
Forum: Windows
Topic: Windows 10 Printer Problems after latest updates.
Replies: 1
Views: 81

Re: Windows 10 Printer Problems after latest updates.

Windows 10 is riddled. Imagine if you have a POS system in your shop running win 10, and relying on the updates. You would soon return to a ledger. I notice that many businesses about the town use Linux, I usually try to get a peek at their monitors. Some of the old DOS systems are the most reliable...
by dodicat
Oct 12, 2019 13:56
Forum: Beginners
Topic: Controlling the window size of a compiled program?
Replies: 15
Views: 554

Re: Controlling the window size of a compiled program?

If you were using plots and charts e.t.c it will be a graphics window (screen something). If not then a console window. (I think QB64's console is a bit like screen 0 here, i.e. no vertical/horizontal scrolling) Here is a simplified version of my previous console code, which last for the session in ...
by dodicat
Oct 12, 2019 10:04
Forum: Beginners
Topic: Controlling the window size of a compiled program?
Replies: 15
Views: 554

Re: Controlling the window size of a compiled program?

Windows. For console you can change font size / console dimension for a session via code. #include "windows.bi" dim as HWND console = GetConsoleWindow() dim as RECT r GetWindowRect(console, @r) 'get the console size dim as integer s print "Original font size" print getconsolefont...
by dodicat
Oct 11, 2019 12:15
Forum: General
Topic: Squares
Replies: 6987
Views: 421805

Re: Squares

Regarding the Linux/fbide Albert, short of installing wine and trying out fbide for myself, I can't think of anything else, and I am not really a Linux user anyway these days. When I do use Linux (mainly to test run code), I use gedit set for language vb.net. It at least gives keyword highlighting a...
by dodicat
Oct 10, 2019 15:32
Forum: General
Topic: Useful defines
Replies: 24
Views: 1958

Re: Useful defines

Yea, Looks like the uinteger in 32 and 64 bits problem var x= rgb(255,255,255) +1 #print typeof(x) print x sleep '64 bits gives 4294967296 '32 bits gives 0 'x is uinteger in both cases Have to change the range parameters. function range(f as double,l as double) as double return int(Rnd*(((l)+1)-(f))...
by dodicat
Oct 10, 2019 13:11
Forum: General
Topic: Useful defines
Replies: 24
Views: 1958

Re: Useful defines

Agreed Mr Swiss. rgba covers 0 to rgba(255,255,255,255), so rnd* this range is good rgb covers rgb(0,0,0) to rgb(255,255,255) so rnd * rgb(255,255,255) is not good. Here are the three possibilities. But WHY does the 32 bit compiler fail completely here? #define range2(f,l) int(Rnd*(((l)+1)-(f)))+(f)...
by dodicat
Oct 09, 2019 18:40
Forum: General
Topic: Squares
Replies: 6987
Views: 421805

Re: Squares

Albert. Create a folder called bin in your home folder, not any deeper, but directly in your home folder. This bin folder automatically has special attributes, any executable in it is on the system path. pop your fb source code (.bas files) directly into this folder and use fbide as usual to run it/...
by dodicat
Oct 09, 2019 0:42
Forum: General
Topic: Squares
Replies: 6987
Views: 421805

Re: Squares

Hi Albert.
I rarely use Linux, and I don't have Wine, but you could try inserting the ./ in the fbide - view - settings - freebasic - run command
Something like
./ "<$file>" <$param>
It might open the terminal and run the executable, you never know!
by dodicat
Oct 08, 2019 19:15
Forum: General
Topic: Howto print & draw from own library's Subs/Funcs ?
Replies: 11
Views: 362

Re: Howto print & draw from own library's Subs/Funcs ?

ppf, if you do a little work and send the screenptr and other info (width,height,depth . . . ) to the dll then you can skip the freebasic graphics commands and use direct pixel plots. Here are line circle and text. pixels.bas 'pixels.bas compile with -dll Type screendata As Integer w,h,depth,bpp,pit...
by dodicat
Oct 07, 2019 21:31
Forum: Tips and Tricks
Topic: Quick run tool - Windows
Replies: 18
Views: 916

Re: Quick run tool - Windows

I have the latest winFBE.
I have yet to try out your configurations.
I note (SetCompilerPaths and SetCompilerSwitches. They will need to be installed).
Where are these installed?
I don't mind zippers, but installers??
by dodicat
Oct 07, 2019 21:19
Forum: Beginners
Topic: 3 text heights without #include
Replies: 5
Views: 275

Re: 3 text heights without #include

Another method for fun. Using your ascii blocks, re spaced a bit Type D2 As Long x,y As Ulong col End Type Sub drawstring(xpos As Long,ypos As Long,text As String,colour As Ulong,xy() As D2,n As Long=0,im As Any Pointer=0) Static As Long loading If loading<3 Then If Screenptr=0 Then Screen 8,,,-1 Wi...

Go to advanced search