Hi Scott, 

> The way I do it is to have an "OpenFiles" subprocedure that 
> opens all of the files needed by the program.  This routine 
> first opens all of the files. Then it registers a CleanUp 
> subprocedure with CEE4RAGE.  Then it sets an indicator that 
> says "I'm done opening files".  If the subprocedure gets 
> called again, it checks that indicator to see if it's already 
> opened the files -- if it has, it simply returns harmlessly.
> 
> Every exported subprocedure in my service program calls the 
> OpenFiles routine as it's first line of code.
> 
> When the activation group ends, CEE4RAGE automatically calls 
> my cleanup procedure which closes the files.

I wasn't aware of the CEE4RAGE API. Thanks for pointing this out. 
 
> Didn't we just have this conversation recently?

Sorry if I missed something, I didn't follow all threads last 2 months. 
I'll check the archive.

Thanks,
Arco Simonse
--

DISCLAIMER:
This message contains information that may be privileged or confidential and is 
the property of the sender. 
It is intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not 
authorized to read, print, retain, copy,disseminate, distribute, or use this 
message or any part thereof. If you
receive this message in error, please notify the sender immediately and delete 
all copies of this message. 

This footnote also confirms that this email message has been swept for the 
presence of computer viruses



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.