News:

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

Main Menu

Recent posts

#81
Announcements / Re: New Year, new URL
Last post by TimoVJL - January 11, 2026, 02:00:12 AM
Thanks Pelle !
Nice way to start a New Year  8)
#82
Announcements / Re: New Year, new URL
Last post by John Z - January 11, 2026, 01:59:36 AM
Great change
👍 👍 👍

John Z
#83
Announcements / New Year, new URL
Last post by Pelle - January 10, 2026, 09:18:21 PM
www.smorgasbordet.com/pellesc  =>  www.pellesc.se

( with some minor polishing later, maybe... )
#84
General discussions / Re: smorgasbordet.com/pellesc/...
Last post by bitcoin - January 10, 2026, 01:04:31 AM
Where is Pelle ? Is he alive? :'(
#85
Assembly discussions / Getting memory capacity
Last post by Vortex - January 08, 2026, 07:39:06 PM
Here is an example based on the API function GetPhysicallyInstalledSystemMemory :

include     GetMemory.inc

.data

fc1         db 'Compute name = %s'
            db 13,10,0

fc2         db 'The computer %s '
            db 'has %u Gb of memory.',0

nSize       dd 32

.data?

CompName    db 32 dup(?)
Memory      dq ?

.code

start:

    invoke  GetComputerName,\
            ADDR CompName,ADDR nSize

    invoke  printf,ADDR fc1,\
            ADDR CompName

    invoke  GetPhysicallyInstalledSystemMemory,\
            ADDR Memory

    mov     eax,DWORD PTR Memory
    mov     edx,DWORD PTR Memory+4

    mov     ecx,1024*1024
    div     ecx

    invoke  printf,ADDR fc2,ADDR CompName,eax
           
    invoke  ExitProcess,0

END start
#86
Add-ins / Re: Line Counter Add-IN
Last post by John Z - January 06, 2026, 12:12:03 PM
Updated DLL for Pelles C Version 13. Minor bug fix too.


John Z
#87
Beginner questions / Re: Read PDF text with PDFio
Last post by jos - January 05, 2026, 01:04:59 PM
Thank you very much.

Master, now it works! I'll try to go through it and compare what I missed or what I did wrong.
#88
Beginner questions / Re: Read PDF text with PDFio
Last post by TimoVJL - January 05, 2026, 09:46:05 AM
Project with only source and zlib-libs in cdecl format.

zlib project is at:
https://forum.pellesc.de/index.php?msg=41804


https://www.msweet.org/pdfio/pdfio.html
#89
Beginner questions / Re: Read PDF text with PDFio
Last post by John Z - January 04, 2026, 04:45:21 PM
Quote from: jos on January 04, 2026, 01:36:28 PMNow I only get this error:
Building pdfiodll.dll. but POLINK cannot find 'zlib.lib'?


If you have not copied the lib into the Pelles C Lib directory then it might not find it unless you add the path to the folders under Project - Options - General - Folders (select Libraries) then add the path to the zlib.lib.

John Z
#90
Beginner questions / Re: Read PDF text with PDFio
Last post by TimoVJL - January 04, 2026, 02:14:17 PM
You might find it from zlib project:
https://forum.pellesc.de/index.php?msg=41804

I haven't tested it yet.