Search found 2894 matches

by Tourist Trap
Jun 06, 2020 17:53
Forum: General
Topic: Optimum sum of a set of numbers
Replies: 18
Views: 763

Re: Optimum sum of a set of numbers

Again, Thank y'all for the prompt help!!! Nick Those guys are too fast :) So here is my contrib. Something is wrong, I'm having some weird issue with the subset generation. I guess I wanted to do something like shown at grindstone example but failed. However I added some simple graphics at the end....
by Tourist Trap
Jun 06, 2020 15:28
Forum: General
Topic: Optimum sum of a set of numbers
Replies: 18
Views: 763

Re: Optimum sum of a set of numbers

I need to get the optimum sum of these numbers not to exceed a particular number like 1000. Hello, nice idea to get the brain training on this kind of problems in FB. It's quite rewarding. I don't understand something, here above however. Do you mean you want to find a subset of your list of number...
by Tourist Trap
Jun 06, 2020 15:05
Forum: General
Topic: Windowtitle not working when using SetProcessDpiAwareness
Replies: 7
Views: 277

Re: Windowtitle not working when using SetProcessDpiAwareness

When I use the winapi call SetProcessDpiAwareness then the windows title is empty. Hi UEZ, We had a discussion about Dpiawareness months ago, when doing freebasic game challenge, and we tried many ways to do this (adding a manifest and so on...). It came out that among all the others testes at the ...
by Tourist Trap
Jun 03, 2020 16:30
Forum: Beginners
Topic: Different Constructor for array than single instance
Replies: 4
Views: 256

Re: Different Constructor for array than single instance

To answer the strict meaning of the initial question, there is no way to implicitly call a constructor or another depending on whether you instantiate Ok, I see now. What about a farstrecthed form like this? It won't rely on the constructors if you use the proper alternate initialisation, and will ...
by Tourist Trap
Jun 03, 2020 11:49
Forum: Beginners
Topic: Different Constructor for array than single instance
Replies: 4
Views: 256

Re: Different Constructor for array than single instance

Does anyone know how to use a different constructor depending on if a type is created as an array instead of a single instance? I don't even know what to search for to find this in the forumn. Hello apimpnamedshane, I think I can see what you want to say. For buiding a UDT that behaves as an array ...
by Tourist Trap
Jun 02, 2020 19:23
Forum: Community Discussion
Topic: FreeBASIC vs QB64
Replies: 23
Views: 1418

Re: FreeBASIC vs QB64

These modern flat screen monitors I am sure are bad for the eyes. Not all flat screens are equal and the environment is important too. Agreed. That's why I'm so angry about those led lighting everywhere. They are far too powerful and tiresome for the eyes. The good old yellowish sodium lights are u...
by Tourist Trap
May 31, 2020 22:53
Forum: Windows
Topic: How to deal with COM objects?
Replies: 6
Views: 381

Re: How to deal with COM objects?

WASAPI has not a CLSID. WASAPI consists of several interfaces. The first of these is the IAudioClient interface. To access the WASAPI interfaces, a client first obtains a reference to the IAudioClient interface of an audio endpoint device by calling the IMMDevice::Activate method with parameter iid...
by Tourist Trap
May 31, 2020 21:06
Forum: Windows
Topic: How to deal with COM objects?
Replies: 6
Views: 381

Re: How to deal with COM objects?

Test for the above example Thanks infinitely Josep Roca, this works fine! And obviously I couldn't have figured out such an amount of technical code by my own. WinFBX is really an underestimated ressource. Then now I changed the CLSID in both the client executable and server dll, I put mine (of the...
by Tourist Trap
May 31, 2020 20:17
Forum: Windows
Topic: How to deal with COM objects?
Replies: 6
Views: 381

How to deal with COM objects?

Hello, the topic here: https://www.freebasic.net/forum/viewtopic.php?f=6&t=18952, is really going very complicated, and it was almost useless for me for now. Even the first example there, supposedly the simplest, lacks the DECLARE_INTERFACE_ definition so... I managed to grab another tutorial he...
by Tourist Trap
May 31, 2020 15:19
Forum: General
Topic: Squares
Replies: 8041
Views: 507491

Re: Squares

If you know in advance that the data set you are compressing is just a set of random values (a white noise, for example), compressing it is easy: you store only the length of the dataset, and nothing else. When it's time to reconstruct it, you just use the random number generator to create a new se...
by Tourist Trap
May 31, 2020 14:07
Forum: General
Topic: Squares
Replies: 8041
Views: 507491

Re: Squares

No, Albert. None of them compressed data. Not even one. "Compression" happens if, and only if, you can restore original data. If you can't, it's not compression . Otherwise, if all you care about is to reduce data size, and you don't care to restore original data, the ultimate compression...
by Tourist Trap
May 27, 2020 19:57
Forum: Community Discussion
Topic: 15 years of freeBASIC forum?
Replies: 7
Views: 495

Re: 15 years of freeBASIC forum?

It seems that today this forum exists 15 years. Based on the sysop account created on 27 May 2005, 01:11 (https://www.freebasic.net/forum/memberlist.php) That was when most of us were running Windows XP on a Pentium-4 or an Athlon XP computer. Ubuntu existed for only 1 year and I had no grey hair y...
by Tourist Trap
May 27, 2020 15:01
Forum: Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 26
Views: 9156

Re: Windows API: Open Dialog to Browse for a File

Dear Guys; I compiled this code with FreeBASIC 1.07.1 32bit version (Windows 10). by spodhaje » Apr 21, 2008 22:00 Then, the following errors were displayed. Please tell me how to fix it. Hi Makoto WATANABE, I don't know if the fixes below can help you: #Include Once "crt.bi" #Include Onc...
by Tourist Trap
May 22, 2020 14:25
Forum: Tips and Tricks
Topic: Import a jaggered CSV file and save data to a common comma delimeted csv format
Replies: 20
Views: 1216

Re: Import a jaggered CSV file and save data to a common comma delimeted csv format

Hi geofs, looks fine. Just a thing you can use the 'CODE' tag (just above the text zone when you post a message) in order to make things easier to read here. Like this: 'This is a variaion of my import, sort & export a CSV file that has an unkonwn amount of rows & columns tip, 'This sample o...

Go to advanced search