Search found 2947 matches

by Tourist Trap
May 31, 2020 22:53
Forum: Windows
Topic: How to deal with COM objects?
Replies: 6
Views: 2048

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: 2048

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: 2048

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: 772531

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: 772531

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: 1299

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: Sources, Examples, Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 27
Views: 15193

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: Sources, Examples, Tips and Tricks
Topic: Import a jaggered CSV file and save data to a common comma delimeted csv format
Replies: 20
Views: 3959

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...
by Tourist Trap
May 22, 2020 14:21
Forum: Community Discussion
Topic: BASIC is not BASIC anymore
Replies: 10
Views: 2429

Re: BASIC is not BASIC anymore

The biggest disadvantage of #lang "fb" is that you have to type more. Setting an integer to 1 (ignoring number of bits): In "QB": a% = 1 In "FB": dim as integer a = 1 In "C" : int a = 1; Hi badidea, you still can be lazy and just type: var a = 1 That will do ...
by Tourist Trap
May 18, 2020 8:04
Forum: Sources, Examples, Tips and Tricks
Topic: Make the taskbar app icon flash on Windows
Replies: 2
Views: 1815

Re: Make the taskbar app icon flash on Windows

It flashes five times. success. I have never used vb.net. Is it an event driven interpreter/compiler like the other windows vb's (5/6)? Hi dodi, thanks for testing. About vb.net it's what comes shipped with Visual Studio (you can grab the 'community edition' as they call it for free and without any...
by Tourist Trap
May 17, 2020 14:46
Forum: Sources, Examples, Tips and Tricks
Topic: Make the taskbar app icon flash on Windows
Replies: 2
Views: 1815

Make the taskbar app icon flash on Windows

Hi, I recently needed to monitor my WIFI which was not stable (due to, supposedly, the load on the network while people were under quarantine in France). When you loose the network, that's quite silent on windows, so I needed something flashy like the app icon blinking. I used vb.net for the network...
by Tourist Trap
May 12, 2020 18:15
Forum: General
Topic: VB6 Project TO Freebasic/how to Parse VB6 functions into JSON objects?
Replies: 9
Views: 1775

Re: VB6 Project TO Freebasic/how to Parse VB6 functions into JSON objects?

This is definitely the "trick" type, and the hardest. Hi xiaoyao, Yes, that's why that's not a trick for the moment. It will be a trick, and a nice one, when it will be solved. For now it's a question :) Personnally I use VB6. Or not exactly VB6 but VBA which is very similar. And I often ...
by Tourist Trap
May 06, 2020 12:34
Forum: Libraries & Headers
Topic: libOpenCV Windows/Linux 32/64-bit
Replies: 38
Views: 7751

Re: libOpenCV Windows/Linux 32/64-bit

Hi again, just to be sure, the constructors of MAT datatype are not implemented, are they? https://docs.opencv.org/ref/2.4/d3/d63/classcv_1_1Mat.html From what I can guess the MAT datatype is defined here in this file: opencv_core_types.bi Roughtly here is what I found concerning the class definitio...
by Tourist Trap
May 06, 2020 11:09
Forum: Windows
Topic: FreeBASIC-1.08.0-winxx-gcc-10-20200502
Replies: 6
Views: 1649

Re: FreeBASIC-1.08.0-winxx-gcc-10-20200502

srvaldez wrote:FB last GitHub update was 4 months ago, basically this build allows you to compile with the work-in-progress gcc-10
Thanks, and for now it works just perfectly here.