User Libraries, Resources and Residents usage

Everything else that doesn't fall into one of the other PB categories.
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

User Libraries, Resources and Residents usage

Post by RichAlgeni »

I feel foolish asking this, but is there a good primer on using libraries and resources? I'd like to use Klaus's Excelwriter, but I am doing something dumb. I've done many searches, but I am either looking for the wrong thing, or it just isn't sinking in.

Should the Excel Writer user libraries be copied into the main PureBasic\PureLibraries\UserLibraries directory?

What do Residents do? Are they needed as well?

What about Resources?

If someone could smack me upside the head, I'd appreciate it!
User avatar
Derren
Enthusiast
Enthusiast
Posts: 313
Joined: Sat Jul 23, 2011 1:13 am
Location: Germany

Re: User Libraries, Resources and Residents usage

Post by Derren »

Yes, the user library goes into the userlibrary directory.
The residents goes into the resident folder.
Residents make the IDE recognize the function names and constantes.
The IDE automatically corrects the Camelcase notation (i.e. MyUserLibraryCommand (notice the capital letters)) and shows the "quick help" in the status bar (i.e. what parameters the function awaits).

Not sure where the resources go, but you should keep the directory-structure or the archive file.
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: User Libraries, Resources and Residents usage

Post by RichAlgeni »

Thank you Derren, that explains a lot!

Klaus has different versions available, I can see why if he used a command that had been deprecated from PB, but why is there a different version from 4.51 to 4.6?
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: User Libraries, Resources and Residents usage

Post by IdeasVacuum »

why is there a different version from 4.51 to 4.6
The lib may be taking advantage of a new PB function, or it may use TailBite, which needs to be in-synch with the PB Version.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply