News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#71
Expert questions / Re: Link error with minhook
Last post by John Z - May 11, 2026, 01:38:00 PM
Hi ander_cc,

Try this version of MiniHook.rc might work -

John Z
#72
Add-ins / Re: SelectLine
Last post by John Z - May 10, 2026, 12:51:20 PM
Minor update to build a version that always selects the entire line regardless of the cursor position in the line.  To build this way define ALWAYS_WHOLE before building.

Original build a cursor in the middle will select from the cursor to the EOL.
An ALWAYS_WHOLE build a cursor in the middle, or anywhere in the line, selects the entire line.

John Z

Newer source zip include below for version 2
#73
Assembly discussions / Re: Burst Sort sample
Last post by Vortex - May 10, 2026, 11:55:33 AM
Here is the 64-bit sample :

ExitProcess PROTO :QWORD
printf PROTO :QWORD,:VARARG
BurstSortStrings PROTO :QWORD,:QWORD,:QWORD

.data

s1      db 'lemon',0
s2      db 'apple',0
s3      db 'orange',0
s4      db 'banana',0
frmt    db '%s',13,10,0

strtabl dq OFFSET s1,OFFSET s2,OFFSET s3,OFFSET s4

.code

start:

    sub     rsp,8+4*8
    call    main
    invoke  ExitProcess,0

main PROC USES rsi rbx PARMAREA=4*SIZEOF QWORD

    invoke  BurstSortStrings,ADDR strtabl,4,0

    mov     rbx,4
    mov     rsi,OFFSET strtabl
@@:
    invoke  printf,ADDR frmt,QWORD PTR [rsi]
    add     rsi,SIZEOF QWORD
    dec     rbx
    jnz     @b
    ret

main ENDP

END start
#74
Announcements / Re: Version 14.10 is now avail...
Last post by CandCPlusPlus - May 07, 2026, 11:24:35 PM
Thank you for the new releases. That was fast.
#75
Assembly discussions / Burst Sort sample
Last post by Vortex - May 07, 2026, 09:33:49 PM
Hello,

Inspired by zedd151 from the Masm Forum, here is a Poasm example using a C module to sort strings :

http://masm32.com/board/index.php?topic=13289.0

.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG
BurstSortStrings PROTO C :DWORD,:DWORD,:DWORD

.data

s1      db 'lemon',0
s2      db 'apple',0
s3      db 'orange',0
s4      db 'banana',0
frmt    db '%s',13,10,0

strtabl dd OFFSET s1,OFFSET s2,OFFSET s3,OFFSET s4

.code

start:

    call    main
    invoke  ExitProcess,0

main PROC USES esi ebx

    invoke  BurstSortStrings,ADDR strtabl,4,0

    mov     ebx,4
    mov     esi,OFFSET strtabl
@@:
    invoke  printf,ADDR frmt,DWORD PTR [esi]
    add     esi,4
    dec     ebx
    jnz     @b
    ret

main ENDP

END start
#76
Feature requests / Re: Enhanced snippets suggesti...
Last post by John Z - May 06, 2026, 11:25:58 AM
Hi ander_cc,

Quote from: ander_cc on April 27, 2026, 03:38:57 AMCould you add a "auto select current line" feature?

One of the many exceptional features of the Pelles C package is the ability to add features using the add-in api(s).

Checkout https://forum.pellesc.de/index.php?topic=11795.0 to see if it is useful for your request to for an 'auto select current line' feature, granted it is not quite 'auto', maybe semi-auto  :) , but perhaps useful.

John Z
#77
Add-ins / SelectLine
Last post by John Z - May 06, 2026, 11:12:10 AM
Here is a simple add-in, which may or may not be useful for anyone's needs.

Looking for an easy way to select a line?  This might be your solution.

SelectLine is an addin that makes it simple to select an entire line or any portion of a line from the current cursor location to the end of the line, excluding the new line character.  Use the Main Menu - Source - Select Line, or place the cursor and right click to get the pop-up source menu and click 'Select Line'.

That's it - small add-in DLL with a small feature, also uses TimoVJL's alternative DLLmain

Project sources attached (next post below), easy to build or use existing SelectLine.dll

John Z
#78
Assembly discussions / Re: Message only window
Last post by Vortex - May 04, 2026, 09:31:57 PM
Here is the 64-bit version.
#79
User contributions / Re: Hint_SA (Standalone)
Last post by John Z - May 04, 2026, 03:54:53 PM
Hint_SA update to 1.2.1

Updates sql from 3.46.1 to 3.53 (sqlite3_b.lib)

No other code changes.

John Z
#80
Add-ins / Re: Hint Add-IN
Last post by John Z - May 04, 2026, 03:13:22 PM
Update:  Since SQLite3 was found to have critical bug before version 3.50, which I was using, I've update to Sqlite3 version 3.53.

Also since I created the new sqlite3.lib I named it sqlite3_b.lib, so if you create your own just replace the name in the project options-linker

Attached are the updated files. Other than the sqlite there are no code changes.
Only 5 downloads for the original so .....


John Z