[Access et VBA] problème avec SHBrowseForFold
ushiwa.sasuke
-
ushiwa.sasuke -
ushiwa.sasuke -
Bonjour,
j'ai un petit problème avec SHBrowseForFold
le voici :
j'ai une déclaration tout en haut de mon module :
Ensuite ma fonction :
Mais j'ai un message d'erreur qui apparait :
[IMG]http://img247.imageshack.us/img247/9751/msgerreur2oh3.jpg[/IMG]
Si quelqu'un pourrait m'aider...
Merci d'avance.
j'ai un petit problème avec SHBrowseForFold
le voici :
j'ai une déclaration tout en haut de mon module :
Private Const BIF_RETURNONLYFSDIRS = 1 Private Const BIF_DONTGOBELOWDOMAIN = 2 Private Declare Function SHBrowseForFolder Lib "shell32" (lpbi As BrowseInfo) As Long Private Declare Function SHGetPathFromIDList Lib "shell32" (ByVal pidList As Long, _ ByVal lpBuffer As String) As Long Private Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (ByVal lpString1 As String, _ ByVal lpString2 As String) As Long Public Declare Function FindWindow Lib "User32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Type BrowseInfo hWndOwner As Long pIDLRoot As Long pszDisplayName As Long lpszTitle As Long ulFlags As Long lpfnCallback As Long lParam As Long iImage As Long End Type
Ensuite ma fonction :
Private Sub btn_parcourir_Click() Dim lpIDList As Long Dim strBuffer As String Dim strTitre As String Dim tBrowseInfo As BrowseInfo strTitre = Titre With tBrowseInfo .hWndOwner = Handle .lpszTitle = lstrcat(strTitre, "") .ulFlags = BIF_RETURNONLYFSDIRS + BIF_DONTGOBELOWDOMAIN End With lpIDList = SHBrowseForFolder(tBrowseInfo) If (lpIDList) Then strBuffer = String(260, vbNullChar) SHGetPathFromIDList lpIDList, strBuffer edit_repertoire.Text = SelectFolder("Sélectionnez un répertoire :", Me.Hwnd) End If End Function
Mais j'ai un message d'erreur qui apparait :
[IMG]http://img247.imageshack.us/img247/9751/msgerreur2oh3.jpg[/IMG]
Si quelqu'un pourrait m'aider...
Merci d'avance.
A voir également:
- [Access et VBA] problème avec SHBrowseForFold
- Acer quick access - Forum logiciel systeme
- Quick Access service ✓ - Forum PC portable
- Désinstaller ACER QUICK ACCESS - Forum Logiciels
- Access appdata - Guide
- Vba range avec variable ✓ - Forum VB / VBA