Solved

How does one construct a header file for a shared library

Posted on 2000-05-05
3
166 Views
Last Modified: 2013-12-26
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
Comment
Question by:creality
3 Comments
 
LVL 1

Expert Comment

by:charlass
ID: 2785367
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
 
LVL 2

Accepted Solution

by:
roov earned 50 total points
ID: 2787095
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
 

Author Comment

by:creality
ID: 2788974
Thanks. Appreciate the help.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do you programatically show and hide the Windows 10 On-Screen-Keyboard? 3 649
while loop over for loop 7 101
isEverywhere  challenge 19 74
mapAB Challlenge 35 142
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now