News:

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

Main Menu

Recent posts

#71
User contributions / Re: Hint_SA (Standalone)
Last post by TimoVJL - October 25, 2026, 12:09:18 PM
#72
User contributions / Re: Hint_SA (Standalone)
Last post by John Z - October 25, 2026, 11:22:00 AM
Here is version 2, with a few more improvements.

It now also includes a help file.  Seems I now can't upload the full program with win32.chm, 12Meg, gives error saying contact admin...so the 'ProgramOnly_Hint_SA_V20..." does not include the win32.chm file.  It is available on SourceForge if you need to get it, and perhaps elsewhere.
The link to the SourceForge project page is
 https://sourceforge.net/projects/win32-help-chm/  
 and the direct win32.chm download link is
 https://sourceforge.net/projects/win32-help-chm/files/latest/download
 after downloading un-zip it into the Hint_SA directory

John Z
#73
Work in progress / Re: A support library to simpl...
Last post by Michele - October 21, 2026, 08:02:40 AM
Quote from: Robert on October 21, 2026, 05:53:25 AMHi Michele:

Great beginnings.

I would prefer that the windows of Database Inspector, Browse Tables and SQL Query Workbench would be modeless so that, at any one moment, more than one of the windows can be open.

When I construct a query, I have to be able to see the tables and fields.

Thank you.
Thanks Robert.
If you compile with the symbol 'MSQL_MODELESS_UI' defined in preprocessor, the windows become modeless. Maybe there will be problems syncyng upon database context modifications, probable crashes. I'm working on it.
When you construct a query pressing <CTRL>+<SPACE> will open the database object selector (see picture). Select teh object you want insert and press enter or double click it to insert.

P.S. The window background, with its rather grand, high-flown tone, was an idea conceived by the AI that generated it. Personally, I view my own work in much more modest terms, but I'm too lazy to change it.
#74
Work in progress / Re: A support library to simpl...
Last post by Robert - October 21, 2026, 05:53:25 AM
Hi Michele:

Great beginnings.

I would prefer that the windows of Database Inspector, Browse Tables and SQL Query Workbench would be modeless so that, at any one moment, more than one of the windows can be open.

When I construct a query, I have to be able to see the tables and fields.

Thank you.
#75
Work in progress / Re: A support library to simpl...
Last post by Michele - October 21, 2026, 12:15:45 AM
Here we are, I publish the alpha version of library 'DynSQLite' and sample application 'DynSQLite Studio'.
There is still a lot of debug and fixing of code (actually has repetitions and over-coding) as is normal for the first release.
In the project workspace I left the binary if you want test them immediately, if you prefer yuo can remove them and recompile the workspace.
I added the sqlite dll, header and library, they come from the binary release that you can download from the SQLite site if you want. This is important because DynSQLite, to analyze the DB, need some functions that aren't present in the PellesC reduced version. If you compile and try to run the app inside the IDE, without the DLL in the exe folder, it will automatically link with the native PellesC SQLite DLL causing the program to fail (A message box will tell you that some entries in DLL are missing).

EDIT: Amended the project directories.
To test the program you can download big databases from the net, like the northwind.db (One is here) whic contains images blobs, and employee.db (A copy here) very large DB useful to check efficiency of the browser control.
Other database useful for trigger evaluation is sakila_master.db (a copy here).

It would be grateful if you give me your feedback on usefulness of this library and report of bugs and feature requests.
Even more appreciated code enhancements.
Waiting to hear from you.
#76
General discussion / Re: Testing code with other C ...
Last post by TimoVJL - October 20, 2026, 09:18:46 PM
I like to test codes for compability reasons.

TLPeViewUC.c had some cases, like
int i;
...
i  = 0;
and it wasn't used later and was a testing leftover.

char *pName = 0;
...
pName = (char*)pImportBName->Name;


EDIT 2026-10-22: A TLWHView needed a lot of changes to sources and headers for making it compilable with Clang with only using Pelles C Windows headers and libraries and msvcrt.dll
#77
General discussion / Re: Testing code with other C ...
Last post by Vortex - October 20, 2026, 08:18:54 PM
Hi Timo,

Pelles C can detect unused variables too. I guess you found a specific case. Could you share your code if it's possible?
#78
General discussion / Testing code with other C comp...
Last post by TimoVJL - October 20, 2026, 05:04:34 PM
If program code avoid crt, it might be easy to compile it with different compilers.
I use clang-cl.exe as a reference C compiler to see more warnings, but some projects was quite easy to build with clang and with polink with Pelles C libraries.
With clang i saw many unused variables and dead code.
#79
Add-ins / Re: Hint Add-IN
Last post by Michele - October 16, 2026, 11:33:38 PM
Quote from: TimoVJL on October 16, 2026, 11:02:19 PM
Quote from: Michele on October 16, 2026, 10:52:21 PMFor sake of precision, my name is Michele, an italian male name.
Sorry about that, i wrote just too fast and having bad fingers  :(
Not a problem at all  :)
I Added a table creator/editor to DynSQLite.
#80
Add-ins / Re: Hint Add-IN
Last post by TimoVJL - October 16, 2026, 11:02:19 PM
Quote from: Michele on October 16, 2026, 10:52:21 PMFor sake of precision, my name is Michele, an italian male name.
Sorry about that, i wrote just too fast and having bad fingers  :(