News:

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

Main Menu

Recent posts

#71
User contributions / Re: DynSQLite Library - SQLite...
Last post by Michele - November 10, 2026, 01:22:57 PM
Thanks Robert!  :)
I fixed the workspace zip and reloaded it. There were 2 problems.
The first was the missing folder for the SQLite3.h header, in my system compiled because I have this location in the system path.
The second problem was a missing header file that I included using <> brackets, so the zipper skipped it and doesn't included in the zip.
Please let me know if you can compile it now.
I will appreciate your opinion and what would you like to be added to the library.
#72
Add-ins / Re: Hint Add-IN
Last post by John Z - November 10, 2026, 12:10:06 PM
Quote from: TimoVJL on October 16, 2026, 03:49:00 PMA function database is a nice idea.
For example GDIPlusFlat function defines could add to source code or private header directly.

Seems not much interest in the Hint Add-in, so the Hint Add-in might not be updated.  However the Hint_SA (Stand Alone) program is updated with GDI+Flat information and GDIPlus.chm access.
https://forum.pellesc.de/index.php?topic=11621.15

Also the current Hint Add-in version can use the new win32_functions.db3 database and get GDI+Flat basic function information, it just can't access GDIPlus.chm for more.

John Z
#73
User contributions / Re: DynSQLite Library - SQLite...
Last post by Robert - November 10, 2026, 09:51:32 AM
Hi Michele:

I'm running Pelles C 14.50.0 on Windows 11 26H2

Using your .ppw loaded into Pelles IDE

I run
Clean WorkSpace
then
Build WorkSpace

MemLeakCheck.lib is built
ReflectControl.lib is built
then in the IDE output window

Project opened: D:\WorkBench\Pelles C\Michele\DynSqlite_workspace\sqlitestudio_dll.ppj
Project build started
Project build ended successfully
Project build started
Project build ended in complete failure

I ran your builds on one of my SQLite .db and was impressed with what you have accomplished.

Thank you.
#74
Assembly discussions / Re: Retrieving the size of a f...
Last post by Vortex - November 09, 2026, 08:11:50 PM
Hi Timo,

Can you try to get the size of pagefile.sys from a volume shadow copy?
#75
User contributions / Re: Hint_SA (Standalone)
Last post by John Z - November 09, 2026, 12:02:03 PM
Quote from: TimoVJL on October 25, 2026, 12:09:18 PMFrankie's fGdiPlusFlat.h would be a good addition.

This new version 3.0.0 of Hint_SA now includes the GDI+Flat functions with an updated db3.  It can also access the included GDIPlus.chm to display more information about a function, just like when accessing Win32.chm.

This post is only the program and does not include win32.chm which will need to be acquired elsewhere and placed into the program directory. The Hint_SA.chm help file has download sources for win32.chm.

Project source code will be posted soon too.


John Z

The new win32_functions.db3 will also work with Hint_SA version 2 however accessing the GDIPlus.chm file will not.

#76
User contributions / DynSQLite Library - SQLite sup...
Last post by Michele - November 09, 2026, 12:12:02 AM
Finally I release a beta version of DynSQLite in hope that its features are of any use.

DynSQLite is a C library designed for native Win32 applications, providing a comprehensive database workbench and browser engine. It enables developers and users to manage multi-database environments concurrently through a modern, fully modeless architecture.
This is a Beta release.

CORE DATABASE MANAGEMENT & INSPECTION FEATURES:
  • Multi-Database Workspaces (HCDBCONTEXT): Seamlessly open, switch, and manage multiple concurrent database connections and file contexts on the fly with real-time broadcasting mechanisms like WM_MSQL_DB_EVENT and WM_MSQL_CTX_RENEWED.
  • Schema Browsing & Virtual Listview Engines: High-performance virtual listview browsers (MsqlCreateBrowserControl, MsqlAttachBrowserMetadata) supporting real-time schema swapping, custom text filtering, pattern matching, and collation rules.
  • Comprehensive Schema Inspection: Detailed descriptor abstractions for tables, views, triggers, and columns (MsqlGetTableDescriptor, MsqlGetViewDescriptor, MsqlGetTriggerDescriptor, MsqlGetColumnDescriptor), providing granular access to field types, count metrics, and table properties.
  • Data Inspection & CRUD Operations: Advanced data browser capabilities including hex data inspection for BLOB fields, image rendering pipelines, record deletion protocols (MsqlDeleteRecord), and customized event hooks via fnMsqlCrudCallback.

SCHEMA DEFINITION & STRUCTURAL MODIFICATION:
  • Table & Object Lifecycle Management: Complete programmatic control to create, alter, and drop database objects, including dedicated prompts and helpers for table alterations (MsqlPromptAndAlterTable, MsqlAlterTable), table creation (MsqlPromptAndCreateTable), and object deletion (MsqlDropObject).
  • Triggers & Extensions: Built-in automated helper utilities such as MsqlCreateUpdateTimeTrigger for updating timestamps, along with full runtime support for loading SQLite extensions and checking extension function availability (MsqlLoadExtension, MsqlIsExtensionFunctionAvailable).

ROBUST DATA INTERCHANGE (IMPORT & EXPORT):
  • Multi-Format Export Engine: Export query results and result sets directly to CSV, JSON, SQL, and XML formats, featuring dedicated utility workflows like MsqlExportQueryResults, MsqlExportTableToCsv, MsqlExportTableToSql, MsqlExportTableToJson, MsqlExportTableToXml, and interactive prompt wrappers.
  • Flexible Data Importers: Comprehensive ingestion tools to parse and import CSV, JSON, XML, and SQL dump structures directly into target tables via functions like MsqlImportDataFile, MsqlImportCsvToTable, and MsqlPromptAndImportData.

SQL QUERY WORKBENCH & EXECUTION:
  • Interactive Query Workbench: Fully independent modeless SQL query editor interfaces (MsqlSqlQueryWorkbench) allowing complex query drafting, validation, execution, and dynamic result set visualization across multiple active database contexts.

MODERN WIN32 ARCHITECTURE & WINDOW MANAGEMENT:
  • Modeless-First Design: Completely asynchronous, long-lived popup windows that allow concurrent interaction across multiple database workbenches without blocking the host application.
  • Active Desktop Workspace Tiling & Cascading: Custom layout engines (MsqlTileManagedWindows, MsqlCascadeManagedWindows) that calculate precise coordinates against the active desktop work area (SPI_GETWORKAREA), tiling and cascading workbenches cleanly above the taskbar.
  • Thread-Safe Registry & Menu Integration: Robust critical-section thread protection for active window states, accompanied by clean public API hooks (MsqlGetManagedWindowCount, MsqlGetManagedWindowInfo) to dynamically populate host window menus with live titles and checkmarks.

The library is available for download on sourceforge.net, download the workspace here.

Actually PellesC site doesn't allow to load the files (gives an error and ask to refer to the administrator), when, and if, it will allow to load the workspace zip I'll upload it here also.
#77
Assembly discussions / Re: Retrieving the size of a f...
Last post by Vortex - November 08, 2026, 10:16:46 PM
Hi Timo,

Thanks. Here is WIN32_FILE_ATTRIBUTE_DATA structure :

typedef struct _WIN32_FILE_ATTRIBUTE_DATA {
  DWORD    dwFileAttributes;
  FILETIME ftCreationTime;
  FILETIME ftLastAccessTime;
  FILETIME ftLastWriteTime;
  DWORD    nFileSizeHigh;
  DWORD    nFileSizeLow;
} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
#78
Assembly discussions / Re: Retrieving the size of a f...
Last post by TimoVJL - November 08, 2026, 10:10:39 PM
GetFileAttributesEx is simpler, but have an own features.

EDIT: function name fixed.

Also using FindFirstFileEx with FindExInfoBasic, if short name isn't needed.
A FindFirstFile is just a wrap function to FindFirstFileEx.

GetFileAttributesEx fails with "C:/pagefile.sys" with sharing error,
FindFirstFile not.
#79
Assembly discussions / Retrieving the size of a file
Last post by Vortex - November 08, 2026, 09:17:14 PM
Enhanced version of the filesize function from the Masm32 library :
.386
.model flat,stdcall
option casemap:none

include filesize.inc

.code

filesize PROC lpszFileName:DWORD

LOCAL wfd:WIN32_FIND_DATA

    invoke  FindFirstFile,lpszFileName,ADDR wfd
    cmp     eax,INVALID_HANDLE_VALUE
    jz      fsEnd 

    invoke  FindClose,eax

    mov     eax,wfd.nFileSizeLow

fsEnd:

    ret

filesize ENDP

END
#80
Assembly discussions / Re: Enumerating top level wind...
Last post by Vortex - November 07, 2026, 08:45:48 PM
Here is the 64-bit version.