This is a utility for people using PurePLUGIN to create plugins for DBPro.
For those of you who remember the excellent utility PurePLUGIN by Freddix, or care, if you've been using PurePLUGIN to create DBPro Plugins you've no doubt realised what a total and utter drag it is putting together .rc resource files when compiling your PureBasic file in to a shared dll file, perhaps renaming and then applying PPFixer to the original .dll so it works with DBPro, then also creating an INI file, then also creating basic help files, then tying the INI file to the help file(s).
I wanted to write a utility to short-cut this. A fair time ago I had a first crack. You had to flag how to interpret parameters, return variables etc in ";" rems in the .pb code. I really should have tried harder...:-
http://forum.thegamecreators.com/?m=forum_view&t=150031&b=8
I then got bored, did other things...
I eventually came back to it (see attached for download).
Parse 'your procedures' type .pb files for commands/functions
Accurately interpret .pb code so as to know whether the cdll procedures are aimed at creating functions or commands, number of parameters, type of parameters, type of any return variable - that's the first clever part
Create .rc resource file having read through .pb file
Assist with creation of end .dll. Apply PPFixer effect without having to run PPFixer on .dll
Create INI file (which allows for optional parameters commands ie. Min, Min1, Min2 with 2,3 and 4 parameters are all roled in to one line on the INI - and one help file) - that's the second clever part
Create 'help' files to tally with the INI file. I could'nt expend the effort to hard code html so I've just left them as txt files - works after a fashion. People can take that and change to colourful html if they want to
if you put ;[help],[text you want to add to explain the eventual command] in a line within a CDLL procedure in .pb purebasic code, (you can put up to 10 within a CDLL procedure) it will play out those up-to-10 lines as help lines of text regarding the command in the end help file for that command
This is still a work in progress....
If anyone has the inclination, please feel free to trial and test it...
You could probably shoe-horn it in to converting just a single .pb file for .rc and .ini and help file purposes...
a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...