Search found 3538 matches
- Mon Feb 26, 2024 12:44 am
- Forum: Tricks 'n' Tips
- Topic: SQLite C-Interface - Create Own Functions
- Replies: 4
- Views: 2430
Re: SQLite C-Interface - Create Own Functions
Great stuff mk-soft :!: Is it possible to add multi-row calculations like Stddev() as a user defined function? EDIT: Found pb versions of several sqlite extensions.c. Looks like they work after changing .l to .i. https://www.purebasic.fr/english/viewtopic.php?p=516157#p516157 https://www.purebasic.f...
- Fri Feb 23, 2024 7:03 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
Yes, I have the exit strategy ok, but it is the double event processing that I sometimes observe in my apps?
I would think the BindEvent() should clear the event before returning to the main event loop?
I would think the BindEvent() should clear the event before returning to the main event loop?
- Fri Feb 23, 2024 5:55 pm
- Forum: Coding Questions
- Topic: Close button intermittently doesn't close
- Replies: 17
- Views: 652
Re: Close button intermittently doesn't close
Hi Fred,
Do you have a link or help page that explains event priorities?
If I use BindEvent(), PostEvent() along with the standard Event Loop,
which Procedure "sees" an event first?
Does BindEvent return to the Event Loop and clear the event it acted on?
Do you have a link or help page that explains event priorities?
If I use BindEvent(), PostEvent() along with the standard Event Loop,
which Procedure "sees" an event first?
Does BindEvent return to the Event Loop and clear the event it acted on?
- Wed Feb 21, 2024 3:48 am
- Forum: Coding Questions
- Topic: StrD and Rounding
- Replies: 17
- Views: 566
Re: StrD and Rounding
Interesting example though I have not seen runaway as high as that with my typical floating point math. I do get burned when doing lazy trigonometry on small shapes on a canvasgadget. :oops: Scaling really saves the day. Simple scaling applied to STARGATE's example: #ML_SF = 10000 Define.i i Define....
- Tue Feb 20, 2024 7:03 pm
- Forum: Coding Questions
- Topic: StrD and Rounding
- Replies: 17
- Views: 566
Re: StrD and Rounding
This is a problem of scale.
You should use fixed point math for picoliters(e-12) and milliliters(e-3), etc.
You should use fixed point math for picoliters(e-12) and milliliters(e-3), etc.
- Sat Feb 17, 2024 8:22 pm
- Forum: Coding Questions
- Topic: Some troubles and I don't know how to report
- Replies: 6
- Views: 312
Re: Some troubles and I don't know how to report
When I have weird behavior, I'm forced to simplify the code and/or write info to log files before crash. I use prototypes instead of CallFunction. Then inspect each prototype for valid address. I use threads and semaphores, but never threaded variables. My databases are under 1GB. So far, v6.10b6 is...
- Thu Feb 15, 2024 4:00 pm
- Forum: Coding Questions
- Topic: Get dead keys in canvases?
- Replies: 6
- Views: 452
Re: Get dead keys in canvases?
[ctrl] and [alt] have no real action by themselves so what are you trying to accomplish? Here is mousemove + [ctrl] or [alt] on the canvasgadget. #CG = 0 #EV_KS_CTRL_T = 100 #EV_KS_ALT_T = 101 #EV_KS_TAB = 102 OpenWindow(0, 0, 0, 500, 500, "Canvas Keyboard Shortcuts", #PB_Window_ScreenCent...
- Tue Feb 13, 2024 11:36 pm
- Forum: Bugs - Windows
- Topic: [Done] v610b6 ASM does not flag out of bound array().
- Replies: 2
- Views: 228
[Done] v610b6 ASM does not flag out of bound array().
Dim x.d(2) x(0) = 1 x(1) = 2 x(2) = 3 x(3) = 4 ;<-- ASM does not mention bad line? CBE works. Debug x(4) ; --------------------------- ; PureBasic Debugger ; --------------------------- ; The debugged executable quit unexpectedly. ; --------------------------- ; OK ; ---------------------------
- Fri Feb 09, 2024 8:20 pm
- Forum: Coding Questions
- Topic: Get dead keys in canvases?
- Replies: 6
- Views: 452
Re: Get dead keys in canvases?
I don't understand your requirement? I use dozens of keyboard shortcuts with the canvasgadget. #EV_KS_CTRL_T = 100 #EV_KS_ALT_T = 101 #EV_KS_TAB = 102 OpenWindow(0, 0, 0, 500, 500, "Canvas Keyboard Shortcuts", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) CanvasGadget(0, 0, 0, 500, 50...
- Tue Feb 06, 2024 2:26 am
- Forum: Bugs - Windows
- Topic: [Done] PB 6.10b5 OpenWindow() with x,y #PB_Ignore is positioned incorrectly.
- Replies: 2
- Views: 266
Re: [Done] PB 6.10b5 OpenWindow() with x,y #PB_Ignore is positioned incorrectly.
Doh!
I just got burned by this
Have to install previous beta or swap out #PB_Ignore=0.
I just got burned by this
Have to install previous beta or swap out #PB_Ignore=0.
- Sun Feb 04, 2024 8:52 pm
- Forum: Coding Questions
- Topic: Purebasic Interacting with other windows?
- Replies: 10
- Views: 536
Re: Purebasic Interacting with other windows?
Don't mess with the mouse.
Change the idle state.
Change the idle state.
- Thu Feb 01, 2024 7:01 pm
- Forum: Coding Questions
- Topic: How to get digits from barcode reader?
- Replies: 6
- Views: 460
Re: How to get digits from barcode reader?
There should be an api or dll you can poll for the barcode reader input?
How you choose to display in your gui depends on where you put the user focus.
How you choose to display in your gui depends on where you put the user focus.
- Thu Feb 01, 2024 6:34 pm
- Forum: Assembly and C Programming in PureBasic
- Topic: Struct explanation request
- Replies: 10
- Views: 1469
Re: Struct explanation request
System languages needed pointers to be efficient.
Even Fortran added pointers later.
Basic had clunky varptr() and addressof().
Yes, C++ became a bloated mess with technical debt and over a 1000 pages of definitions.
But, you can still choose to code C++ with a C approach and do very well.
Even Fortran added pointers later.
Basic had clunky varptr() and addressof().
Yes, C++ became a bloated mess with technical debt and over a 1000 pages of definitions.
But, you can still choose to code C++ with a C approach and do very well.
- Fri Jan 26, 2024 1:46 am
- Forum: Coding Questions
- Topic: Determine the type of drive
- Replies: 4
- Views: 396
Re: Determine the type of drive
Procedure.i SL_IsLocalDrive(Drive$) Drive$ = UCase(Left(Drive$, 1)) Protected.i nDrive = RealDriveType_(Asc(Drive$) - 65, 0) Select nDrive Case #DRIVE_NO_ROOT_DIR nDrive = 0 Case #DRIVE_UNKNOWN ndrive = 0 Case #DRIVE_REMOVABLE nDrive = 1 Case #DRIVE_FIXED nDrive = 1 Case #DRIVE_REMOTE nDrive = 0 Ca...
- Thu Jan 25, 2024 8:07 pm
- Forum: General Discussion
- Topic: Windows defender's false positives - again
- Replies: 7
- Views: 719
Re: Windows defender's false positives - again
We have to use cylance at my company. Every... And I mean really every compiled file is an Virus in the eyes of this crappy thing. But, this AV don't Block... It only delete after the app is closed and write a mimimi-mail to our admins. At the end of some days I have around 50 entries for purbasic_...