Search found 2115 matches

by DarkDragon
Tue Mar 26, 2024 8:40 pm
Forum: General Discussion
Topic: PHPBB Problem?
Replies: 2
Views: 205

Re: PHPBB Problem?

Probably security limitations of the browser. Http is basically forbidden nowadays. Letsencrypt can get you a free certificate for https.

CORS or CSP might be involved.
by DarkDragon
Sat Mar 23, 2024 8:57 pm
Forum: Off Topic
Topic: PureBasic icon
Replies: 10
Views: 476

Re: PureBasic icon

Z for Zorro!! :mrgreen:
Starwolf20 wrote: Sat Mar 23, 2024 3:42 pm i allways have seen a F (inversed) and a L.
I don't know why ..........
I've always seen an italic PB with some strokes missing for whatever reason.
by DarkDragon
Sat Mar 23, 2024 5:27 am
Forum: Coding Questions
Topic: [Solved] Global Chr() problem
Replies: 19
Views: 720

Re: Global Chr() problem

The Global is outside of any conditional statements. The folding lines drawn are a bug that I've never reported. :) Anyway, marking this as Solved because I think there must be a thread calling the variable before the Global line for it was reached. Debug Len(extdot$) Check the length please to see...
by DarkDragon
Sun Mar 17, 2024 6:17 pm
Forum: Off Topic
Topic: The US government asks not to use C/C++ due to memory vulnerabilities.
Replies: 12
Views: 646

Re: The US government asks not to use C/C++ due to memory vulnerabilities.

Memory safety is also being discussed in the C++ community, it's not the case that only the US government says that. https://www.youtube.com/watch?v=I8UvQKvOSSw https://herbsutter.com/2024/03/11/safety-in-context/ There has always been the difference between business critical, mission critical and s...
by DarkDragon
Sun Mar 17, 2024 11:04 am
Forum: Off Topic
Topic: The US government asks not to use C/C++ due to memory vulnerabilities.
Replies: 12
Views: 646

Re: The US government asks not to use C/C++ due to memory vulnerabilities.

There's already a topic about it here: https://www.purebasic.fr/english/viewtopic.php?t=83696 Rust compared to C(++) is like formal verification compared to testing. So it is definitely safer than C/C++, due to its object lifetime and ownership management. If we can use it, we should, but it's not t...
by DarkDragon
Sat Mar 16, 2024 9:16 pm
Forum: 3D Programming
Topic: Should 'Attach' like commands move the attached object?
Replies: 9
Views: 398

Re: Should 'Attach' like commands move the attached object?

Often there are multiple modes to attach an object in an engine for putting it underneath some other object in the scene graph. Changing the coordinates has the same right to exist than not changing the coordinates. E.g. putting an object into somebody's hand is changing coordinates. A person walkin...
by DarkDragon
Thu Mar 14, 2024 6:25 pm
Forum: Feature Requests and Wishlists
Topic: case statements can have the same values?
Replies: 17
Views: 526

Re: case statements can have the same values?

normeus wrote: Thu Mar 14, 2024 5:58 pmPB is a single pass compiler
Which means it knows what it has already seen and thus it can throw an error at the second case with the same value 😉.
by DarkDragon
Thu Mar 14, 2024 6:37 am
Forum: Coding Questions
Topic: File picker gadgets in native PureBasic?
Replies: 17
Views: 556

Re: File picker gadgets in native PureBasic?

blueb wrote: Wed Mar 13, 2024 1:47 pm If you need a little more depth.... :mrgreen:

https://www.purebasic.fr/english/viewtopic.php?t=74350
Isn't this an extended requester? OP wants the controls before the requester appears with the browse button:


TextGadget StringGadget Button
by DarkDragon
Tue Mar 12, 2024 5:56 pm
Forum: Coding Questions
Topic: File picker gadgets in native PureBasic?
Replies: 17
Views: 556

Re: File picker gadgets in native PureBasic?

There is no official control for that, you have to compose it yourself. I also wondered a few years ago why it isn't, but it is also a very simple composition of a label, an input field and a button.
by DarkDragon
Mon Mar 11, 2024 6:29 am
Forum: Coding Questions
Topic: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?
Replies: 12
Views: 477

Re: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?

Initially there was no #PB_Any, back then everyone had to rely on constant numbers. However you sometimes want to dynamically create those objects inside procedures or inside loops without having to check whether the outside system uses the number already. That's when #PB_Any was introduced. OpenWin...
by DarkDragon
Sun Mar 10, 2024 9:21 pm
Forum: Coding Questions
Topic: Purebasic 6.10 beta 6
Replies: 9
Views: 657

Re: Purebasic 6.10 beta 6

Create an exe and run it from the source directory is a lost of time... You can tell PB to do that by default for you: https://www.purebasic.com/documentation/reference/images/ide_compiler_compile.png Besides all HEUR/.. things an anti virus mentions are based on HEURistics which are just a rough a...
by DarkDragon
Sun Mar 10, 2024 9:01 pm
Forum: Coding Questions
Topic: Help with Query
Replies: 4
Views: 226

Re: help with QWERY

What database system are you using? Did you try referring to the count column by name? Select * from (select id, Lname, Fname, Class from students where id like '2023-2024%' and class = 'A2') S left join (select book_id, stud_id, count(book_id) as cnt from Lendings where stud_id like '2023-2024%' gr...
by DarkDragon
Sun Mar 10, 2024 6:48 pm
Forum: Coding Questions
Topic: Crash with PB 6.10 b6 with function PeekS / PeekL
Replies: 22
Views: 727

Re: Crash with PB 6.10 b6 with function PeekS / PeekL

Daniel, please don't post such nonsense. What's your solution for Barry? His posts make a total clear that he can't fix his code - and not even find the problematic locations in the code. Avoid high memory addresses is bad, but what else can he do. Sticky with PB 6.04 forever? Your workaround doesn...
by DarkDragon
Sun Mar 10, 2024 6:24 pm
Forum: Coding Questions
Topic: Crash with PB 6.10 b6 with function PeekS / PeekL
Replies: 22
Views: 727

Re: Crash with PB 6.10 b6 with function PeekS / PeekL

I strongly disagree with this 'fix', your app will crash anyway if the target computer has a lot of memory. Accessing pointer with a long read on x64 is wrong and should be fixed, but if you like unstable apps, feel free to apply this kind of hacks. Yes, this is no fix, but a workaround. If he can'...
by DarkDragon
Tue Mar 05, 2024 6:34 am
Forum: General Discussion
Topic: Statements of Support for Software Measurability and Memory Safety
Replies: 5
Views: 342

Re: Statements of Support for Software Measurability and Memory Safety

If using the C backend I guess it is possible to leverage the different built in sanitizers to achieve some sort memory safety. https://stackoverflow.com/a/48902567 But as you said these are just to achieve "some sort of" memory safety and they're runtime checkers, you have to run your pr...