Libraries

Some newlib dummys questions

I understand that we have an underlying clib2 or newlib, which support lots of the lower level "stuff". and I am being vague because I have no more details than that.(file handles? linkage to parents? )
I understand that certain programs, such as tools for Bars&Pipes, or AHI drivers, or auto-starting USB FD drivers often link with "-nostartfiles", which leaves out the clib2 or newlib code and initialization. I think this applies to many libs and devs as well.

I am absolutely sure of NOTHING I have said so far. This is a learning process for me.

Forums: 

xad library

Does anyone have some code on how to use xadmaster.library? The included example is terrible and hard to follow. I am looking for simple code on how to list, add, extract archives. Disk archives would be a bonus.

Forums: 

Shared objects, a quick and not too dirty example to open a library?

Hello everyone,

never used the shared object under AOS.
Could someone show me a quick example on how to open a shared object library under AOS 4?
In particular i would like to open the SDL via shared object for tests.

Thank you very much.

Forums: 

Application library warning

Hello,
When I execute my program, a requester pops up and says that I've used version 2 application.library tags and that the program will crash. The warning appears if I use any of the following tags with the RegisterApplication function:

  • REGAPP_UniqueApplication
  • REGAPP_NoIcon
  • REGAPP_AppIconInfo
  • REGAPP_Description
  • REGAPP_URLIdentifier

I'm puzzled because according to the application library documentation those tags are valid. Are there any replacing tags?

Forums: 

How to verify if there is a datatypes class installed to open specific dataype, without opening it first!

By using ObtainDataType() I can easily find the group, basename etc of the datatype of an object, but how do I verify if there is class available to handle it?

For example ObtainDatatype() will return System binary for an executable but if I have no binary.datatype installed I will not be able to open it.

I don't wish to 'test by opening' as some files in the datatset might be large and so take quite a while to process a long list file just to rject the one or two that might not be openable.

Forums: 

OS4.0 compared to OS4.1+

Is it safe to say that if someone running OS4.0, but has been doing all the AmiUpdates for the classes (up to v53+), would not have a problem running a program intended for OS4.1+?

What I am getting at is if I use a gadget class tag the requires v53 of the class, like CLICKTAB_CloseImage, is it backwards compatible with OS4.0? Then will the class function, say FreeClickTabList() (requires 53.11), still work on OS4.0?

Just asking because if I use the latest version of tags/functions will I lose all of OS4.0 users from using my program?

Forums: 

Re-use AllocFileRequest()

I have created an Asl requester, FileReq=AllocFileRequest(), and use it with AslRequestTags().

All is working just fine. I initialize it once, use it several times, then FreeFileRequest(FileReq); at program quit.

It is working fine, but is this a good idea? Should I allocate it every time before opening the requester and free it right after?

Forums: 

Pages

Subscribe to RSS - Libraries