Search found 2125 matches
- Fri Apr 12, 2024 3:50 pm
- Forum: Coding Questions
- Topic: Get data from opened website
- Replies: 7
- Views: 403
Re: Get data from opened website
Using a WebGadget/WebViewGadget or the installed browser outside your application? If you want to control a browser which is already installed WebDriver is probably the most feasible option. https://chromedriver.chromium.org/home https://chromium.googlesource.com/chromium/src/+/master/docs/chromedri...
- Thu Apr 11, 2024 7:38 pm
- Forum: Bugs - Documentation
- Topic: Number bases / Table - dead link
- Replies: 0
- Views: 124
Number bases / Table - dead link
There's a dead link on the main page of the documentation
From
https://www.purebasic.com/documentation/
(Number bases / Table)
To
https://www.purebasic.com/documentation/number_tab.html
From
https://www.purebasic.com/documentation/
(Number bases / Table)
To
https://www.purebasic.com/documentation/number_tab.html
- Tue Apr 09, 2024 7:56 pm
- Forum: Windows
- Topic: Detect if a window has curved corners?
- Replies: 6
- Views: 277
Re: Detect if a window has curved corners?
Maybe you can find something here: https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/ GetThemePartSize or GetThemeMetric or GetThemeBitmap with WP_FRAME or something like that? That's how firefox does control rendering. https://github.com/mozilla/gecko-dev/blob/master/widget/windows/nsNati...
- Tue Apr 09, 2024 11:24 am
- Forum: Coding Questions
- Topic: DLL example?
- Replies: 2
- Views: 167
Re: DLL example?
You need to compile it as dll and then as exe. The exe will call the procedure from the dll. See compiler options. https://www.purebasic.com/documentation/reference/images/ide_compiler_options.png Executable format: Shared DLL. And it's not a PB only concept, DLLs/Shared Objects can be created with ...
- Tue Apr 09, 2024 10:30 am
- Forum: General Discussion
- Topic: How to organize/keep track of assigned #'s while coding
- Replies: 5
- Views: 271
Re: How to organize/keep track of assigned #'s while coding
Enumerations or #PB_Any for everything.
You can also specify start values for enumerations and you can use #PB_Compiler_EnumerationValue.
https://www.purebasic.com/documentation ... tions.html
You can also specify start values for enumerations and you can use #PB_Compiler_EnumerationValue.
https://www.purebasic.com/documentation ... tions.html
- Sat Apr 06, 2024 7:39 pm
- Forum: Windows
- Topic: how to get SetEnvironmentVariable in batch script
- Replies: 4
- Views: 177
Re: how to get SetEnvironmentVariable in batch script
no i start batch via command line (CMD) my point is to pass a variable back to a script Pb progran is just (console mode selected in compiler) SetEnvironmentVariable("filename","abc123.txt") batch is @purebasicprog.exe @echo %filename% You cannot pass it back to the parent proce...
- Sat Apr 06, 2024 6:45 pm
- Forum: Windows
- Topic: how to get SetEnvironmentVariable in batch script
- Replies: 4
- Views: 177
Re: how to get SetEnvironmentVariable in batch script
HI wondering how does SetEnvironmentVariable works i try SetEnvironmentVariable("filename","abc123.txt") then in a batch used echo %filename% but i get no results out !? thanx Did you start the batch script via RunProgram? Processes inherit environment variables throughout their...
- Tue Apr 02, 2024 5:49 am
- Forum: Coding Questions
- Topic: Incompatibilties after version 6.00
- Replies: 7
- Views: 397
Re: Incompatibilties after version 6.00
Did you use EnableExplicit at the very beginning? A global counter not counting sounds to me like a second instance or the conditions around the increments are never met.
- Mon Apr 01, 2024 8:31 pm
- Forum: General Discussion
- Topic: AddElement() behaviour
- Replies: 15
- Views: 633
Re: AddElement() behaviour
PureBasic's linked lists are doubly linked with a pointer to the last and first element. See the SDK folder: typedef struct PB_ListHeader { struct PB_ListHeader *Next; struct PB_ListHeader *Previous; } PB_ListHeader; typedef struct PB_ListPosition { struct PB_ListPosition *Next; PB_ListHeader *Eleme...
- Sat Mar 30, 2024 5:20 pm
- Forum: Feature Requests and Wishlists
- Topic: SpriteVectorOutput(#sprite)
- Replies: 5
- Views: 979
Re: SpriteVectorOutput(#sprite)
Sprites are pixel based textures, what use case would that be? What would the advantage be over SpriteOutput?
- Tue Mar 26, 2024 8:40 pm
- Forum: General Discussion
- Topic: PHPBB Problem?
- Replies: 2
- Views: 264
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.
CORS or CSP might be involved.
- Sat Mar 23, 2024 8:57 pm
- Forum: Off Topic
- Topic: PureBasic icon
- Replies: 10
- Views: 518
Re: PureBasic icon
Z for Zorro!!
I've always seen an italic PB with some strokes missing for whatever reason.Starwolf20 wrote: ↑Sat Mar 23, 2024 3:42 pm i allways have seen a F (inversed) and a L.
I don't know why ..........
- Sat Mar 23, 2024 5:27 am
- Forum: Coding Questions
- Topic: [Solved] Global Chr() problem
- Replies: 19
- Views: 785
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...
- 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: 15
- Views: 929
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...
- 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: 15
- Views: 929
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...