News:

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

Main Menu

Recent posts

#1
User contributions / Re: DynSQLite Library - SQLite...
Last post by Vortex - Today at 07:36:44 AM
Hello,

The page is available at the moment :

https://github.com/eiszapfen2000/asprintf
#2
User contributions / Re: DynSQLite Library - SQLite...
Last post by Michele - Today at 12:06:43 AM
Quote from: TimoVJL on <strong>Yesterday</strong> at 06:02:27 PMAs ucrt don't have function asprintf , it should suplied with optional code or just not use it.

An asprintf is a posix function.

https://github.com/eiszapfen2000/asprintf

The page isn't available, probably MS problems or blasts of american cyberstorm.
Anyway I'm implementing this:
#if defined(_MSC_VER) || defined(_WIN32)

/* Check if asprintf isn't already defined by another library or header */
#ifndef HAVE_ASPRINTF
#define HAVE_ASPRINTF

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

/* Inline or static helper to avoid linker collisions if included in multiple translation units */
inline int asprintf(char **strp, const char *fmt, ...)
{
    if (!strp || !fmt)
        return -1;

    va_list args;
    va_start(args, fmt);
    int len = _vscprintf(fmt, args);
    if (len < 0)
    {
        va_end(args);
        *strp = NULL;
        return -1;
    }

    char *buf = (char *)malloc((size_t)len + 1);
    if (!buf)
    {
        va_end(args);
        *strp = NULL;
        return -1;
    }

    int written = vsnprintf(buf, (size_t)len + 1, fmt, args);
    va_end(args);

    if (written < 0)
    {
        free(buf);
        *strp = NULL;
        return -1;
    }

    *strp = buf;
    return written;
}

#endif /* HAVE_ASPRINTF */

#endif /* _MSC_VER || _WIN32 */
#3
User contributions / Re: DynSQLite Library - SQLite...
Last post by Michele - Yesterday at 11:59:57 PM
Hello all, I'm proud to announce the version V00.73.18.00 of DynSQLite.
Apart a lot of bugs that I found and removed, I have added many more features:
  • On opening the code checks for the consistency of input files. It is required because SQLite is very lazy on opening files, doesn't check them and return an handle also for wrong files.
  • The browser now shows the referenced data of foreign keys columns when mouse hover over it.
  • The record editor has been enriched:
    • Now the blobs that contain text are displayed as such and can be edited as text (should make happy John Z).
    • The editing of foreign keys permit to select which column of the referenced data to show for better understandability.
    • Now for blob columns is possible to view pictures or dump an hex display of contents.
    • The blobs can be saved to files from editor.
    • The blobs can be changed specifying a file to replace contents, but the update is effective only when the user selects Save. If the editor is cancelled the new file is dropped and the blob remains unchanged.
Implemented in many modules the WIN32_LEAN_AND_MEAN symbol.

The new package is available for download here.
I will appreciate feedbacks and bug reports.
#4
User contributions / Re: DynSQLite Library - SQLite...
Last post by Vortex - Yesterday at 07:23:32 PM
Hi Timo,

Thanks for the GitHub link. I managed to compile the asprint function with Microsoft Visual C++ Compiler for Python 2.7

This addition was required to compile the code :

#ifndef EOTHER
#define EOTHER 131
#endif
#5
User contributions / Re: DynSQLite Library - SQLite...
Last post by TimoVJL - Yesterday at 06:02:27 PM
As ucrt don't have function asprintf , it should suplied with optional code or just not use it.

An asprintf is a posix function.

https://github.com/eiszapfen2000/asprintf
#6
User contributions / Re: DynSQLite Library - SQLite...
Last post by Vortex - Yesterday at 03:23:42 PM
Hi Michele,

QuotePellesC IDE, with all the respect for such great piece of software, doesn't fit very well development, and especially debug of large projects.

FYI, Frankie's fSDK is a HUGE project :

QuoteThis is a challenging project targeting the port of the last complete MS SDK to pellesC.

QuoteThe collection of headers is actually composed of 1381 headers. Many of them are a replacement for outdated headers. The vast majority are completely missing from actual distribution.

https://github.com/Frankie-PellesC/fSDK
#7
General discussions / Re: Wizards only giving me 64 ...
Last post by Vortex - Yesterday at 12:52:08 PM
HiRKSJBeck,

QuoteVortex, just go to "file->New->Project" Select "Wizard for Windows application".  I get an option a x64 or ARM64.

I can confirm the issue. No any option to create a 32-bit project.
#8
User contributions / Re: DynSQLite Library - SQLite...
Last post by TimoVJL - Yesterday at 11:12:18 AM
Quote from: Michele on November 16, 2026, 06:30:55 PMI'm doing the development using Clang under Eclipse IDE and don't see a big change in compilation times.
Easy to understand with a that compination.
From where we could find working headers for clang, like stdlib.h stdio.h ?

Some timings with lib_src:
With WIN32_LEAN_AND_MEAN and without it
0:15.779s
0:23.780s
#9
General discussions / Re: Wizards only giving me 64 ...
Last post by John Z - Yesterday at 10:48:17 AM
https://forum.pellesc.de/index.php?topic=10669.0

"Nice to hear your willingness to support the 'Dev Team' which is Pelle :)

However Pelle has decided to forgo any donations.  He has removed the method(s) to donate, and the latest update to  http://www.pellesc.se showing terms and conditions emphasizes it is totally free without any donation or fees. "

John Z
#10
General discussions / Re: Wizards only giving me 64 ...
Last post by RKSJBeck - November 16, 2026, 10:23:45 PM
I did find that the suggestion of right clicking the project and changing the target to x86 works like a charm.  I honestly didn't even know you could do anything to the project tree, *and* I did find that taking the wizard DLLs from the V13 compiler and moving them to the V14 compiler works, you just lose the ARM64 option, which I could care less about right now.
So, thanks again for the pointers guys, you're always helpful.

BTW, what ever happened to the "Donate" button on the website?
I used to give a little something every year.