Eurico, Ideally, in you application loader. Once it is loaded all forms/programs can access it regardless of data sessions.
Either that, or use a trick that Bo showed at FoxForward 2007. Declare a function with the same name as the dll/api call and this function will wrap the dll. This method removes problems with the clear dll's command: For an example: http://www.codeplex.com/VFPX/Thread/View.aspx?ThreadId=21138 See the last comments on the blog. Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eurico Chagas Filho Sent: 28 April 2008 22:41 To: 'ProFox Email List' Subject: Declare-DLL Hi I have two different forms that call the same DLL. Where should I put the Declare statement ? TIA, E. No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.5/1398 - Release Date: 25-Apr-08 14:31 [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

