Search found 1406 matches

by the.weavster
Tue Jun 21, 2022 12:21 pm
Forum: Announcement
Topic: PureBasic 6.00 released !
Replies: 620
Views: 113738

Re: PureBasic 6.00 Beta 10 released !

Imo having it as a global setting is better than not having it at all :(
by the.weavster
Fri Jun 03, 2022 2:10 pm
Forum: Off Topic
Topic: A cordial gift for Kwai chang caine :)
Replies: 15
Views: 669

Re: A cordial gift for Kwai chang caine :)

Kwai chang caine wrote: Thu Jun 02, 2022 5:48 pm Image
Image
by the.weavster
Fri Jun 03, 2022 2:05 pm
Forum: Coding Questions
Topic: Programming software on ANDROID
Replies: 8
Views: 726

Re: Programming software on ANDROID

StarWarsFan wrote: Thu Jun 02, 2022 7:11 pm So it is on "halt"?
Only until PB 6.0 is done :wink:
by the.weavster
Mon May 23, 2022 4:28 pm
Forum: Off Topic
Topic: I took a hunting course and everything
Replies: 10
Views: 486

Re: I took a hunting course and everything

`
This is my hunting rifle:
Image

You have to take the "Will Not Splatter Fly" bullet point with a shot of salt though 😉
by the.weavster
Thu May 12, 2022 7:18 pm
Forum: Feature Requests and Wishlists
Topic: Implement a full SSL/TLS library
Replies: 57
Views: 3250

Re: Implement a full SSL/TLS library

Fred wrote: Mon May 09, 2022 2:34 pmAbout creating your own HTTPS socket, I agree it can be useful and I will look into it.
:D 8)
by the.weavster
Mon May 02, 2022 3:16 pm
Forum: Coding Questions
Topic: Sending simple text with bluetouth to the phone
Replies: 29
Views: 879

Re: Sending simple text with bluetouth to the phone

And nothing in the Android Web browser :| Is that Chrome? 1) Is your phone's wifi connected to the same network as your PC? 2) Open a command prompt and type: ipconfig just to make sure the code has picked up the right IP address for your PC If both of those are OK I guess it's Windows Defender Fir...
by the.weavster
Sun May 01, 2022 8:09 pm
Forum: Coding Questions
Topic: Sending simple text with bluetouth to the phone
Replies: 29
Views: 879

Re: Sending simple text with bluetouth to the phone

If Not InitNetwork() MessageRequester("Error", "Could not initialize the network", 0) End EndIf Procedure.s GetServerIP() ip$ = "" If ExamineIPAddresses(#PB_Network_IPv4) Repeat IP = NextIPAddress() If IP ip$ = IPString(IP) EndIf Until IP = 0 EndIf ProcedureReturn ip$ ...
by the.weavster
Sun May 01, 2022 3:28 pm
Forum: Off Topic
Topic: A new battery technology ?
Replies: 6
Views: 399

Re: A new battery technology ?

As I understand it these batteries produce a very small amount of energy, for example in order to power a smartphone you'd need a battery the size of a tub of margarine.

These are only really useful for widgets like pacemakers or IoT sensors not smartphones or EVs.
by the.weavster
Sat Jan 22, 2022 3:01 pm
Forum: Bugs - Windows
Topic: RunProgram() and #PB_PROGRAM_WRITE problem
Replies: 1
Views: 2086

Re: RunProgram() and #PB_PROGRAM_WRITE problem

Bump.

I know this is an old bug report but it would be nice if it could be fixed in PB 6.0
by the.weavster
Fri Jan 07, 2022 9:26 am
Forum: Coding Questions
Topic: PB[C] - Include path for C headers
Replies: 3
Views: 309

Re: PB[C] - Include path for C headers

You shouldn't be using #include </path> for your files that's for system files, like #include <stdio.h> Thanks. To import portaudio for instance I did this ImportC "-lportaudio" : EndImport ;tel the linker to include the lib !#include "/usr/include/portaudio.h" ;tell c where the...
by the.weavster
Thu Jan 06, 2022 1:48 pm
Forum: Coding Questions
Topic: PB[C] - Include path for C headers
Replies: 3
Views: 309

PB[C] - Include path for C headers

How do I pass a C headers include path from the PB IDE to the gcc compiler?
Somehow I need to end up with:

Code: Select all

gcc ... -IC:\path\to\headers
Just using the absolute path for the include:

Code: Select all

!#include <C:\path\to\headers\header1.h>
doesn't work because header1.h may include header2.h etc...
by the.weavster
Thu Jan 06, 2022 11:07 am
Forum: Feature Requests and Wishlists
Topic: Automatically import c headers
Replies: 14
Views: 1117

Re: Automatically import c headers

@the.weavster I'm not sure how that works are the functions accessible from pb then or only js. Actually looking at your and juergen's code above I think maybe what I'm asking for already works just by using the ! line prefix :oops: Just to clarify though... A variable works with the v_ prefix, exa...
by the.weavster
Wed Jan 05, 2022 5:20 pm
Forum: Feature Requests and Wishlists
Topic: Automatically import c headers
Replies: 14
Views: 1117

Re: Automatically import c headers

I was hoping for something similar to SpiderBasic's EnableJS / DisableJS

So including a C header would be:

Code: Select all

EnableC
#include "myheader.h"
DisableC