News:

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

Main Menu

Recent posts

#11
Assembly discussions / REAL4 convertion with OLE auto...
Last post by Vortex - January 31, 2026, 05:46:37 PM
Inspired by Jochen's thread in the Masm Forum ( http://masm32.com/board/index.php?topic=13156.0 ) , here ıs a REAL4 to string convertion example with VarBstrFromR4 :

include    VarBstrFromR4.inc

.data

f          REAL4 3.14

.data?

output      dd ?
buffer      db 8 dup(?)

.code

start:

    invoke  VarBstrFromR4,f,0,0,ADDR output

    xor    eax,eax
    invoke  WideCharToMultiByte,CP_ACP,eax,\
            output,-1,ADDR buffer,\
            8,eax,eax

    invoke  StdOut,ADDR buffer

    invoke  SysFreeString,output

    invoke  ExitProcess,0
.
.
#12
Add-ins / Re: Export C source as HTML or...
Last post by John Z - January 31, 2026, 05:21:03 PM
Attached is what I'm calling version 1.3.

It adds the ability to export an UTF encoded source file into an UTF encoded html file.
It supports color coding. If unwanted, change the colors in the source to black.
It supports output with line numbers added, if wanted.
It supports Dark background output, if wanted. (don't use black characters then  ;) )
It will partially work for UTF16le but I didn't try any characters unique to UTF16le (maybe later) as UTF-8 was the focus.

All sources included in the project zip as usual.
A Dark Mode with Line Numbers example is attached too.
Check the readme file for more information.

Done...

John Z

#13
Add-ins / Re: Export C source as HTML or...
Last post by John Z - January 31, 2026, 03:58:25 PM
Happy to do it.

Here is another output with actual UTF-8 characters :) I realized the first didn't have any 'special' characters.

The version is almost complete.  It also has an optional Dark output mode, and an optional Line Number output mode.  Just removing any nonsense I might have put in.

John Z
#14
Add-ins / Re: Export C source as HTML or...
Last post by TimoVJL - January 31, 2026, 03:35:58 PM
A good thing, that Add-In is still updated  :)
#15
Add-ins / Re: Export C source as HTML or...
Last post by John Z - January 31, 2026, 12:30:14 PM
Making progress  :)

Some help used from 'vibe' coding too.

Here is the first output trial utf8 source to utf8 html.
More improvements to be done before posting new project files.

So this is just preliminary look.

John Z
#16
Tips & tricks / Re: MD5 SHA1 advapi.dll
Last post by Vortex - January 29, 2026, 09:05:35 PM
Hi Timo,

Thanks for the tool, nice work. By the way, no need to add the leading prefix MD5_ to the hashes :

MD5_97D3F8338B65F342E81492FB6FBE8684 .\ScanDirMD5.exe
#17
General discussions / Re: can't find headers
Last post by TimoVJL - January 29, 2026, 04:09:48 PM
Add local dir, that have CL subfolder to INCLUDE.
Like .

My test was#include <stdio.h>
#include <stdint.h>

#include "CL/cl.h"

int main( void )
{
  printf("cl.h standalone test PASSED.\n");
  return 0;
}

.\test.c
.\CL\
#18
General discussions / can't find headers
Last post by Vidlius - January 29, 2026, 02:49:35 PM
I have to be doing something stupid, can anyone help me out here. Trying to incorporate khronos headers in my project and my project can't seem to find the headers.

#19
Tips & tricks / Re: MD5 SHA1 advapi.dll
Last post by TimoVJL - January 28, 2026, 05:32:39 PM
A simple tool for MD5

Just give path for Pelles C bin folder

If it doesn't work, just fix it  ;)
#20
General discussions / Re: smorgasbordet.com/pellesc/...
Last post by TimoVJL - January 28, 2026, 02:20:58 PM
A simple tool for MD5

project files:
https://forum.pellesc.de/index.php?msg=41905