Search found 2616 matches

by Tourist Trap
Feb 22, 2019 15:16
Forum: Beginners
Topic: Does FBC compile some small code in command line?
Replies: 4
Views: 59

Re: Does FBC compile some small code in command line?

Drag and drop to the compiler binary perhaps? At least this, on windows is easy: 'drop some file on the icon of this stuff if command(1)<>"" then if exec("fbc.exe", command(1))<>0 then ? "fbc not found" end if sleep For very basic stuff, something like this might do on...
by Tourist Trap
Feb 22, 2019 14:28
Forum: Tips and Tricks
Topic: Rotating Cube with textures build 2019-02-22
Replies: 5
Views: 179

Re: Rotating Cube with textures build 2019-02-22

dodicat wrote:Here is similar, but for the gambler, not the tourist.

I also do gamble casually!

Both pretty examples this said.
by Tourist Trap
Feb 22, 2019 14:27
Forum: Beginners
Topic: Does FBC compile some small code in command line?
Replies: 4
Views: 59

Does FBC compile some small code in command line?

Hello,

I wonder if there is a way to tell FBC to take a code simply quoted (and not placed within a file) as argument - in command line, like:

Code: Select all

fbc " 'freebasic code : beep : end"


?
by Tourist Trap
Feb 22, 2019 13:48
Forum: Tips and Tricks
Topic: Guidelines for posting Tips and Tricks
Replies: 12
Views: 789

Re: Guidelines for posting Tips and Tricks

I'm not sure yet whether this should be the official point of reference for posting here, but it's perhaps the best we've got for now I think it's perfectly summarized. The essential thing is clearly understandable, the first post of any thread of this section should simply not be a question, or a ...
by Tourist Trap
Feb 19, 2019 21:17
Forum: Beginners
Topic: Reassigning an array all at once
Replies: 5
Views: 163

Re: Reassigning an array all at once

Is there a good way? Hello, I think that when you want to extend the syntax of Freebasic with the tools of the language, you have to use MACROS. Unfortunatly, this is not too much easy when it's the first tries. But when you get it, you really can come to a code that is more like you want it to be ...
by Tourist Trap
Feb 19, 2019 20:54
Forum: Windows
Topic: Dpi awareness functions not included?
Replies: 20
Views: 447

Re: Dpi awareness functions not included?

> I tried the manifest settings from the microsoft sites. It simply didn't work. Try this one: Hello Josep Roca, For some reason this time it started to work. I say for some reason because, after many tries with no result on WinFBE with the default manifest or yours, it finally started to be ok, ev...
by Tourist Trap
Feb 17, 2019 21:33
Forum: Windows
Topic: Dpi awareness functions not included?
Replies: 20
Views: 447

Re: Dpi awareness functions not included?

@Tourist Trap: The recommended way (according to Microsoft) to make your application dpi-aware (or explicitly dpi-unaware, which is the default when you specify nothing) is to add an entry to your application manifest. That's a better method than calling the API methods you mentioned. It should not...
by Tourist Trap
Feb 17, 2019 10:56
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 14994

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

When I contacted Windows (French) by chat to report this specific bug of display, they asked me for my detailed pedigree as if this bug was specific to me, so I gave up (we'll see if it's fixed in a next revision of Windows). I have exactly the same bug. There are many annoying things on win10, and...
by Tourist Trap
Feb 16, 2019 16:29
Forum: Windows
Topic: Dpi awareness functions not included?
Replies: 20
Views: 447

Re: Dpi awareness functions not included?

This one uses the new API. Does it work? This seems to work, congrats! This is preventing the oversizing effect on my system :) Great! This will work for windows 8.1 and 10. I think for 8.0, the old API must be used as fallback. Here on win10, I tested it on 2 programs, that solved the issue. Now I...
by Tourist Trap
Feb 16, 2019 15:33
Forum: Windows
Topic: Dpi awareness functions not included?
Replies: 20
Views: 447

Re: Dpi awareness functions not included?

Landeel wrote:This one uses the new API. Does it work?

This seems to work, congrats! This is preventing the oversizing effect on my system :)
by Tourist Trap
Feb 16, 2019 15:28
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 14994

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

My "solved" is only for my own problem of "Change high DPI settings" menu on my French version of Windows 10. Ah ok! I have the same issue also, but didn't pay it too much attention. If someone finds how to fix the general issue it would be also a good new. I still can't set 192...
by Tourist Trap
Feb 16, 2019 15:05
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 14994

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Solved. See at https://www.windowscentral.com/how-change-high-dpi-settings-classic-apps-windows-10-april-2018-update It won't solve the issue in general. It happens that if I compile with WinFBE, a manifest will be created, and this will override this property setting that is showed in the website ...
by Tourist Trap
Feb 13, 2019 19:30
Forum: Windows
Topic: Dpi awareness functions not included?
Replies: 20
Views: 447

Re: Dpi awareness functions not included?

dim shared shcoredll as any ptr #define S_OK 0 #define PROCESS_PER_MONITOR_DPI_AWARE 2 dim shared SetProcessDpiAwareness as function cdecl(byval PROCESS_DPI_AWARENESS as long=PROCESS_PER_MONITOR_DPI_AWARE) as long dim ret1 as long shcoredll=dylibload("shcore") if shcoredll=0 then print &q...
by Tourist Trap
Feb 13, 2019 19:28
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 14994

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Lachie Dazdarian wrote: Those participating in round 2, I would appreciate your reconfirmation of the participation, and update on your entry status. Thanks.

Will be round 2 or never for me. Thank you.
by Tourist Trap
Feb 13, 2019 19:22
Forum: General
Topic: How to "customize" the random generator?
Replies: 18
Views: 475

Re: How to "customize" the random generator?

Neat and simple Richard. I thought firstly that getting a bias random spread from a uniform distribution would be trivial, but the more I look into it the less trivial it gets. So did I. That's why I really thank all the contributor to the answer. I think it will go somewhere now. I am sure you gam...

Go to advanced search