From: | David McMinn |
Date: | 17 Jan 2000 at 10:18:28 |
Subject: | Re: UDP Chat V2.7 |
Hi Anton
> This will set it up so I can make these functions into an Amiga
> shared
> lib! This will speed the routines up a lot, and allow C/E programmers
> to use them as well. I will do it in assembler, as each program using
> it will have to have it's own memory area (like Mildred does), and it
> would horrible doing it in C (and a waste of time). Any other
I don't think you can write shared libs in C. And if you can, its
probably a real pig.
> suggestions for other ways of doing it- is there a way in C to change
> the pointer to the variables?
What do you mean? (Sorry I haven't looked at the UDP funcs.)
If you mean for the variables that each program using your lib
requires, then you'd create a struct with all the variables in it
that need to be stored for each program, and then have a routine
which allocates memory for it.i.e. pointer=AllocASLRequest_(...).
You'd then require that pointer to be one of the parameters to each
of your function calls.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie