Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

How does one construct a header file for a shared library

Is there a way to utilize a PPC shared library I created without using the GetSharedLibrary() and CreateRoutineDescriptor() functions to load it and create a UPP? I am creating this shared library to turn over to other developers and having them have to use the 10 or so lines of code (per function call) needed to call a funtion is tedious and not very user friendly.
0
creality
Asked:
creality
1 Solution
 
charlassCommented:
Hi,
it's me again ;-)

I don't know these MacOS functions you mentioned.
An easy way to link a SHL is to add it just in CWP into the project files (like all your .cpp).
Then will this SHL automatically get loaded on app start.
Your co-workers need then only the .h file of your SHL - no more stress.

chris
0
 
roovCommented:
If your code is only to be used in PowerPC application, there is no need for UPPs.

All you need is a header file describing all required information about your exported functions (prototypes, your own structures, etc.) and you're set.

Once you supply your library to some developer, all they have to do is add it to their project, include your header file in their source code, call your functions, and voila - their all set...

Reuven
0
 
crealityAuthor Commented:
Thanks. Appreciate the help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now