Made a .decls file ...

Archives Forums/BlitzPlus Programming/Made a .decls file ...

julianbury(Posted 2004) [#1]
I made a file: "user32.decls" just as someone wrote ...
.lib "user32.dll"
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 :-/

Thank you

Kev(Posted 2004) [#2]
.decls go in your userlib folder, its found in your blitz folder.

.decls files auto envoke and systax highlight in blitz.

soja(Posted 2004) [#3]
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.

julianbury(Posted 2004) [#4]
Thank you Kev and soja,

it's working!