Search found 7055 matches

by infratec
Sun Sep 14, 2025 12:44 pm
Forum: Coding Questions
Topic: Frames gadget
Replies: 7
Views: 336

Re: Frames gadget

In which OS ?
by infratec
Sat Sep 13, 2025 10:41 am
Forum: Bugs - Windows
Topic: [Done] OpenFTP not work on 6.21
Replies: 18
Views: 1267

Re: OpenFTP not work on 6.21

This looks strange.
It is not FTP, it's HTTP.
by infratec
Sat Sep 13, 2025 9:33 am
Forum: Bugs - Windows
Topic: [Done] OpenFTP not work on 6.21
Replies: 18
Views: 1267

Re: OpenFTP not work on 6.21

You need this:

serveur.s = "ftp.free.fr"
user.s = "anonymous"
pw.s = ""
port.i = 21

OpenConsole()

If OpenFTP(0, serveur, user, pw, #PB_FTP_Passive | #PB_FTP_Debug, port)
Debug "Open"

If ExamineFTPDirectory(0)
While NextFTPDirectoryEntry(0)
Debug FTPDirectoryEntryName(0)
Wend ...
by infratec
Thu Sep 11, 2025 8:31 pm
Forum: Tricks 'n' Tips
Topic: Get current UNIX UTC time (Windows)
Replies: 7
Views: 370

Re: Get current UNIX UTC time (Windows)

Axeman wrote: Thu Sep 11, 2025 2:01 pmI'm currently using PureBasic 5.73 LTS (Windows - x86), as newer versions of Purebasic are a disaster with some of the software I've developed.
You should sort out the problems of your old Software :wink:
by infratec
Mon Sep 08, 2025 8:59 pm
Forum: Coding Questions
Topic: PlaySound Plays Short of Full Wav file
Replies: 3
Views: 421

Re: PlaySound Plays Short of Full Wav file

Played here always immediately and complete: Win10 x64 PB 6.21 x86 asm backend.

Code: Select all

InitSound()

If LoadSound(0,"Copied.wav")
  PlaySound(0,0,100)
  Delay(1000)
  FreeSound(0) ; The sound is freed
EndIf
by infratec
Fri Sep 05, 2025 9:55 pm
Forum: Bugs - Windows
Topic: [Done] SvgVectorOutput and fonts
Replies: 8
Views: 738

Re: SvgVectorOutput and fonts

This looks like a bug.
Only "t" is wrong.

A moderator should move this in the bug section for investigation.
by infratec
Fri Sep 05, 2025 5:39 pm
Forum: Bugs - Windows
Topic: [Done] SvgVectorOutput and fonts
Replies: 8
Views: 738

Re: SvgVectorOutput and fonts

Please provide a working example which shows the problem.
by infratec
Wed Sep 03, 2025 8:07 pm
Forum: Bugs - Windows
Topic: [Done] PureBasic 6.30 beta 1 - OpenHID() parameter SerialNumber
Replies: 4
Views: 515

Re: PureBasic 6.30 beta 1 - OpenHID() parameter SerialNumber

An USB SerialNumber is a string. (like AARRNIBB9X3FZKXI)
This works without error:

Code: Select all

OpenHID(0, 1234, 456, @"123")
But it looks like a bug, I don't think that this is the intention.
by infratec
Wed Sep 03, 2025 12:19 pm
Forum: Coding Questions
Topic: Linker error with LibCurl.pbi
Replies: 4
Views: 395

Re: Linker error with LibCurl.pbi

Fixed
by infratec
Wed Sep 03, 2025 12:18 pm
Forum: Tricks 'n' Tips
Topic: libcurl.pbi
Replies: 134
Views: 56353

Re: libcurl.pbi

Added support for PB >= 6.30
by infratec
Tue Sep 02, 2025 3:15 pm
Forum: Coding Questions
Topic: [SOLVED] Progress bars, events, macOS - howto?
Replies: 3
Views: 450

Re: Progress bars, events, macOS - howto?

You did it the wrong way:
not the update needs to be inside of a thread, your thread needs to be the slow part.
Then the slow part can update the bar via PostEvent.


CompilerIf Not #PB_Compiler_Thread
CompilerError "You need to enable thread safe in compiler settings"
CompilerEndIf ...
by infratec
Tue Sep 02, 2025 2:48 pm
Forum: Announcement
Topic: PureBasic 6.30 beta 2 is ready !
Replies: 63
Views: 7145

Re: PureBasic 6.30 beta 1 is ready !

For information:
In windows you can not read an USB keyboard or mouse.
It is not allowed by windows to avoid keyloggers.


If a USB device using blocking mode and I put ReadHIDData() in a thread, is it ok to terminate the thread?
Or how can I terminate the blocking read?

In my own stuff I use ...
by infratec
Mon Sep 01, 2025 1:15 pm
Forum: Coding Questions
Topic: Strange outpug from debug?
Replies: 16
Views: 781

Re: Strange outpug from debug?

Please use 'Hex' so that the codes of the characters are visible.