Here is a new Add-in 8) It is called Hint. The purpose is to provide information at your finger tips for Win32 API functions. The add-in consists of hint.dll and a sql database.
Copy hint.dll to the AddIns64 directory and copy the sql db to the \Bin\Help directory. If you have WIN32.CHM then also copy that to the \Bin\Help directory. Enable the Add-IN "PellesC WIN32 API Function Hint" if it not already enabled.
Once enabled a new menu item will appear on the RIGHT click source context menu near the bottom "Win32 API Function Hint".
For a simple example in a source document type in AbortDoc then hover the mouse over it and right click, select the menu item, you will see details about AbortDoc.
HellOfMice did a lot of testing and provided valuable input suggestions, including the one about adding a WEB button. His help really made the Add-in better and caught some bugs I missed too. So even though I wrote it all, he gets credit too. But if any bugs still exist - that's all on me....
In the download is a text file describing all of the different features of the add-in. This is a bit more complicated than the average add-in but I think it adds a lot of value. I hope you do too. The images below show the add-in windows and features it can provide. May see complicated at first but after a use or two it is really simple to use.
Tested on Win 11 23H2, Win 11 24H2, Win 7 Pro
Cheers,and Happy Computing,
John Z
See posting below for the latest version which incorporates an Expert mode to bypass the main window.
Some may not want to mess with the main details window shown above and just want the details. This was an input from HellOfMice.
This version of the Hint.dll will check in the \Bin\Help directory for a file named Expert.mode.
If this file exist then no main window will be shown, all details will go directly to the Pelle Output tab. The file existence can be changed at any time and no need to restart Pelle C.
The only window to be seen will be if there are multiple functions to choose from.
The prototype is still set to the clipboard.
Output Tab example:
Function: AbortDoc
Purpose: function stops the current print job and erases everything drawn since the last call to the topic_startdoc
Prototype: int AbortDoc( HDC hdc );
Parameters: //( Handle to device context )
Header: wingdi.h
Library: gdi32.lib
Hopefully this makes it more usable for everyone from experts to beginners.
Did I mention there are over 10,000 functions available....well now I did
John Z
Reposted the entire package to avoid confusion, as I should have done before
Thanks for creating this Hint Add-In. I'll have to try this add-in.
Tested successfully under Pelle's C V13 RC3 no changes needed.
John Z
Posting source code for the Hint add-in for those interested.
I'm fairly sure it is not up to the standards of more experienced individuals.
However it is a starting point for those interested.
It builds under Pelle V12 as well as Pelle 13.
John Z
Very nice, thanks John Z. Always happy to see shared C code in this day and age :)
Hi All,
Here is a new release of the Hint Add-In. There are very minor code changes, but a significant enhancement to the DB3 database. It now contains 10,043 functions with the base header and library names as well as basic function descriptions for all but about 600 functions.
The post contains the dll in case someone does not want to do a rebuild but sources are included.
Since it is just an sqlite db3 of course one could write their own interface to it - have fun.
In any case it now should be more useful than before.
Functions might be added in the future but I think the DB structure won't change. A new table also has been added for possibly linking functions to the Github docs in a download zip, or perhaps as internet links but not populated.
John Z
Update: Since SQLite3 was found to have critical bug before version 3.50, which I was using, I've update to Sqlite3 version 3.53.
Also since I created the new sqlite3.lib I named it sqlite3_b.lib, so if you create your own just replace the name in the project options-linker
Attached are the updated files. Other than the sqlite there are no code changes.
Only 5 downloads for the original so .....
John Z
Well no downloads of the last version :( , anyway -
Here is a new version of the Hint Add-in. This Hint version 2, is updated to include the features in the recent Hint_SA version. Using Pelles Menu Tools - Options - Add-ins - 'PellesC win32 API Function Hint' then select the Options button, one can choose their preferred web search provider and if they want the output to just go to the Pellec Output tab rather than the output Dialog window.
It also includes a few minor tweaks here and there.
The database has not changed but is included here just in case needed. Hint Add-in and Hint_SA both use the same database and the same Win32.chm.
Sources are included as well as a ready to use Hint.dll.
John Z
Are there other search providers that would be helpful to add? Send me a message through Pelles.
A function database is a nice idea.
For example GDIPlusFlat function defines could add to source code or private header directly.
A tool for checking database before Michele publish his
https://forum.pellesc.de/index.php?msg=21897 (https://forum.pellesc.de/index.php?msg=21897)
Quote from: TimoVJL on Yesterday at 03:49:00 PMA tool for checking database before Michelle publish his
https://forum.pellesc.de/index.php?msg=21897 (https://forum.pellesc.de/index.php?msg=21897)
Hello TimoVJL, I'm almost ready to release the app. I will do in next days just cleaning up.
For sake of precision, my name is Michele, an italian male name.
Quote from: Michele on Yesterday at 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 :(
Quote from: TimoVJL on Yesterday at 11:02:19 PMQuote from: Michele on Yesterday at 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.