Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a browser for find a PDF file in directory (ACCESS)?

Status
Not open for further replies.

jmasm

Programmer
Sep 1, 2010
22
PT
I’m trying to make a browser for find a PDF file in directory (C:).
I find a way for a windows XP 32 bits that works, but I have a Windows 7 64 bits.

When I use the code a error appears in the two lines:

1-Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long

2-Private Declare Function SHBrowseForFolder Lib "shell32.dll" Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long

I recognize that the error is the use of a 32 bits dll in a 64 bits system.
My question is if you can help me make the transition between the 32 bits system and 64 bits system.
The original code was retrieved from the website:
Code courtesy of Terry Kreft
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top