Made a .decls file ...Archives Forums/BlitzPlus Programming/Made a .decls file ...
| I made a file: "user32.decls" just as someone wrote ...|
User32_GetSystemmetrics%( flags% ):"GetSystemMetrics"
Where should this file go and how do I evoke it?
I tried "Include" and Blitz+ was not impressed.
Please expain - as to a simpleton :-/
| .decls go in your userlib folder, its found in your blitz folder.|
.decls files auto envoke and systax highlight in blitz.
| Note that in all the files with a .decls extension in your userlibs folder, you can only define ONE .lib for each library.|
In other words, you can't have '.lib "user32.lib"' more than once in your .decls files, all-inclusive.
Also note that it doesn't matter what you call the files. You can put all the library-specific ones in their own, seperate files (i.e. one file for all user32, one for all kernel32, etc), or you can just stick them all on one .decls file, seperated by just the .lib lines.
Also, you have to restart the Blitz IDE every time you add or change declarations if you want to see the syntax highlighting.
| Thank you Kev and soja,|