Hale, Jim
Jim.Hale at FleetPride.com
Wed Feb 9 16:24:38 CST 2005
Nice! That worked, thanks Jim Hale -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Wednesday, February 09, 2005 4:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting a directory On 9 Feb 2005 at 9:07, Hale, Jim wrote: > I can't get it to compile. It doesn't like SHGetPathFromIDList. Am I missing > a reference? TIA > Jim Hale Sorry, I left two declarations out (I make it a habit to keep all my API declarations and Types in a single module) Public Declare Function SHGetPathFromIDList Lib "shell32.dll" _ Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, _ ByVal pszPath As String) As Long Public Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal pv As Long) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email.