With PB 6.40 you need to fix all strings modified by API or manual character length changes.
CompilerIf #PB_Compiler_Version >= 640
Procedure ResetStringLength(*s.Character)
Protected *p.Integer = *s -SizeOf(Integer)
*p\i = 0
While *s\c
*p\i + 1
*s + SizeOf(Character)
Wend ...
Search found 297 matches
- Mon Jan 26, 2026 3:30 pm
- Forum: Bugs - IDE
- Topic: PureBasic 6.40 alpha 1 Open Save File
- Replies: 6
- Views: 399
- Mon Jan 26, 2026 2:58 pm
- Forum: Bugs - Windows
- Topic: [Done] PB640a1 bug with list
- Replies: 6
- Views: 336
Re: PB640a1 bug with list
You should declare SYS_ConcatString!
Code: Select all
M_SYSFUNCTION(integer) SYS_ConcatString(TCHAR **Address, const TCHAR *String);- Sat Jan 24, 2026 3:32 pm
- Forum: Bugs - Windows
- Topic: [Done] PB640a1 - WriteStringN with #PB_Unicode
- Replies: 1
- Views: 178
[Done] PB640a1 - WriteStringN with #PB_Unicode
If CreateFile(0, GetTemporaryDirectory() + "test.txt", #PB_Unicode)
WriteStringN(0, "Line 1")
WriteStringN(0, "Line 2")
EndIf
Creates a 1 line text file.
Also for the IDE, there are 2 more API calls that needs to be handled.
PureBasicDebugger\StandaloneDebugger.pb --> GetCurrentDirectory ...
WriteStringN(0, "Line 1")
WriteStringN(0, "Line 2")
EndIf
Creates a 1 line text file.
Also for the IDE, there are 2 more API calls that needs to be handled.
PureBasicDebugger\StandaloneDebugger.pb --> GetCurrentDirectory ...
- Wed Feb 19, 2025 12:30 pm
- Forum: Tricks 'n' Tips
- Topic: WASAPI Process Notifications (System Wide)
- Replies: 19
- Views: 4042
Re: WASAPI Process Notifications (System Wide)
You use SizeOf(Quad) to build the 2 vtables.
You should use SizeOf(Integer) instead and it will work on 32bit compiler, too.
You should use SizeOf(Integer) instead and it will work on 32bit compiler, too.
- Wed Feb 05, 2025 10:44 am
- Forum: Coding Questions
- Topic: [SOLVED] COM help!
- Replies: 2
- Views: 1641
Re: COM help!
The inferaces are wrong defined.
Interface IAudioSessionManager2 Extends IUnknown
GetSessionEnumerator(SessionEnum)
RegisterDuckNotification(sessionID, duckNotification)
RegisterSessionNotification(Notification)
UnregisterDuckNotification(duckNotification)
UnregisterSessionNotification ...
Interface IAudioSessionManager2 Extends IUnknown
GetSessionEnumerator(SessionEnum)
RegisterDuckNotification(sessionID, duckNotification)
RegisterSessionNotification(Notification)
UnregisterDuckNotification(duckNotification)
UnregisterSessionNotification ...
- Sun Dec 22, 2024 7:31 pm
- Forum: Announcement
- Topic: PureBasic 6.20 is out !
- Replies: 148
- Views: 105996
Re: PureBasic 6.20 beta 2 is out !
Thanks for windows arm64 support, works great.
I think libucrt.lib should be ditched.
There is no point for static linking, as all Windows ARM systems already have the UCRT runtime.
I think libucrt.lib should be ditched.
There is no point for static linking, as all Windows ARM systems already have the UCRT runtime.
- Mon Dec 09, 2024 4:20 pm
- Forum: Feature Requests and Wishlists
- Topic: Allow Enter key to action gadgets
- Replies: 19
- Views: 6798
Re: Allow Enter key to action gadgets
The 3 mentioned GadgetType are ignored, all other will generate a PB_EventType_LeftClick event on Enter key release.PBJim wrote: Mon Dec 09, 2024 2:49 pm Incidentally, what happens in the below logic? Is this to allow Enter to be passed through as normal in those gadgets?
But yourself should decide on wich GadgetType you want this.
- Mon Dec 09, 2024 10:17 am
- Forum: Feature Requests and Wishlists
- Topic: Allow Enter key to action gadgets
- Replies: 19
- Views: 6798
Re: Allow Enter key to action gadgets
Use a keyboard hook.
Enumeration Window
#WinApp
EndEnumeration
Procedure KeyboardProc(nCode.l, wParam, lParam)
If nCode = #HC_ACTION And wParam = #VK_RETURN And (lParam >> 31) & 1
Protected ActiveGadget = GetActiveGadget()
If ActiveGadget <> -1
Select GadgetType(ActiveGadget)
Case #PB ...
Enumeration Window
#WinApp
EndEnumeration
Procedure KeyboardProc(nCode.l, wParam, lParam)
If nCode = #HC_ACTION And wParam = #VK_RETURN And (lParam >> 31) & 1
Protected ActiveGadget = GetActiveGadget()
If ActiveGadget <> -1
Select GadgetType(ActiveGadget)
Case #PB ...
- Thu Oct 31, 2024 2:01 pm
- Forum: The PureBasic Editor
- Topic: [SOLVED] Very slow editor - independent of settings
- Replies: 107
- Views: 65704
Re: Very slow editor - independent of settings
There is not really one. The shell extension form 1&1 is the problem.dangerfreak wrote: Thu Oct 31, 2024 1:26 pm But where is the correlation between a network drive and an IDE?!
Can't you map the cloud using WebDav?
- Sun Oct 20, 2024 8:44 am
- Forum: Coding Questions
- Topic: Windows/UAC - Launch another program not as administrator?
- Replies: 19
- Views: 5318
- Thu Aug 22, 2024 2:17 pm
- Forum: Coding Questions
- Topic: Rebirth oldest theme - "Enumerate hardware devices (Windows)"
- Replies: 13
- Views: 2646
Re: Rebirth oldest theme - "Enumerate hardware devices (Windows)"
You use #SPDRP_DEVICEDESC for Property, maybe you want #SPDRP_FRIENDLYNAME.
Code: Select all
#SPDRP_FRIENDLYNAME = $0C- Thu Aug 22, 2024 9:14 am
- Forum: Coding Questions
- Topic: Rebirth oldest theme - "Enumerate hardware devices (Windows)"
- Replies: 13
- Views: 2646
Re: Rebirth oldest theme - "Enumerate hardware devices (Windows)"
This should fix x64 compatibility, but error handling should be added still.
EnableExplicit
; How to enumerate hardware devices by using SetupDi calls
; mskuma 26 June 2006
; adapted from http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q259695
; (Windows only)
#DIGCF_PRESENT = $00000002 ...
EnableExplicit
; How to enumerate hardware devices by using SetupDi calls
; mskuma 26 June 2006
; adapted from http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q259695
; (Windows only)
#DIGCF_PRESENT = $00000002 ...
- Fri Jun 07, 2024 3:49 pm
- Forum: Coding Questions
- Topic: [PB 6.11 LTS] [Not a Bug] Can not access address of variable in module
- Replies: 2
- Views: 869
Re: [PB 6.11 LTS] Can not access address of variable in module
Put the @ after module name.
Code: Select all
Debug M_module::@g_var- Fri May 24, 2024 6:34 pm
- Forum: Coding Questions
- Topic: Lock on resizewindow() with thread.
- Replies: 5
- Views: 1158
Re: Lock on resizewindow() with thread.
ResizeWindow() does send messages to the owning (creator of the window) thread,
but you are blocking it with WaitThread().
Avoid blocking function in the main GUI thread and let it process WindowEvent() calls.
but you are blocking it with WaitThread().
Avoid blocking function in the main GUI thread and let it process WindowEvent() calls.
- Thu May 23, 2024 7:24 pm
- Forum: Windows
- Topic: Visual Studio linker download
- Replies: 36
- Views: 13067
Re: Visual Studio linker download
There is no need for documentation, the linker will change with one of the next beta version anyway.Rinzwind wrote: Mon May 20, 2024 6:04 am Can this be documented somewhere? I wasn't aware that placing the VC folder in Compilers was an option. Only matters for asm compiler I guess?
The Pelles linker is not suited anymore.