J'utilise dans le code VB la boite de dialogue Windows pour
sélectionner un répertoire. Mais je voudrais aussi pouvoir
sélectionner un répertoire qui est sur le réseau en sélectionnant son
chemin complet. Mais apparemment la boite de dialogue ne permet pas
de le faire.
J'utilise dans le code VB la boite de dialogue Windows pour
sélectionner un répertoire. Mais je voudrais aussi pouvoir
sélectionner un répertoire qui est sur le réseau en sélectionnant son
chemin complet. Mais apparemment la boite de dialogue ne permet pas
de le faire.
J'utilise dans le code VB la boite de dialogue Windows pour
sélectionner un répertoire. Mais je voudrais aussi pouvoir
sélectionner un répertoire qui est sur le réseau en sélectionnant son
chemin complet. Mais apparemment la boite de dialogue ne permet pas
de le faire.
Bonjour,
J'utilise dans le code VB la boite de dialogue Windows pour
sélectionner un répertoire. Mais je voudrais aussi pouvoir
sélectionner un répertoire qui est sur le réseau en sélectionnant son
chemin complet. Mais apparemment la boite de dialogue ne permet pas
de le faire. Savez-vous pourquoi ?
Merci pour votre aide.
Bonjour,
J'utilise dans le code VB la boite de dialogue Windows pour
sélectionner un répertoire. Mais je voudrais aussi pouvoir
sélectionner un répertoire qui est sur le réseau en sélectionnant son
chemin complet. Mais apparemment la boite de dialogue ne permet pas
de le faire. Savez-vous pourquoi ?
Merci pour votre aide.
Bonjour,
J'utilise dans le code VB la boite de dialogue Windows pour
sélectionner un répertoire. Mais je voudrais aussi pouvoir
sélectionner un répertoire qui est sur le réseau en sélectionnant son
chemin complet. Mais apparemment la boite de dialogue ne permet pas
de le faire. Savez-vous pourquoi ?
Merci pour votre aide.
Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long > 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long > 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long > 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
Hello,
Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
Only return computers. If the user selects anything other than a
computer,
the OK button is grayed.
Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
PIDL.
Comme indiqué sur
: This interface (IMalloc) *must* be used to free memory that was
*allocated
by the Shell*
La description de cette interface en odl compatible VB peut être
trouvée
dans ce post:
C'est AMHA plus propre...
"ng" a écrit dans le message de
news:%Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long >> 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
Hello,
Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
Only return computers. If the user selects anything other than a
computer,
the OK button is grayed.
Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
PIDL.
Comme indiqué sur
: This interface (IMalloc) *must* be used to free memory that was
*allocated
by the Shell*
La description de cette interface en odl compatible VB peut être
trouvée
dans ce post:
C'est AMHA plus propre...
"ng" <ng@ngsoft-fr.com> a écrit dans le message de
news:%23PIiFCxfEHA.1356@TK2MSFTNGP09.phx.gbl
Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long >> 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
Hello,
Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
Only return computers. If the user selects anything other than a
computer,
the OK button is grayed.
Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
PIDL.
Comme indiqué sur
: This interface (IMalloc) *must* be used to free memory that was
*allocated
by the Shell*
La description de cette interface en odl compatible VB peut être
trouvée
dans ce post:
C'est AMHA plus propre...
"ng" a écrit dans le message de
news:%Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long >> 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
Salut,
Ah oui en effet j'avais fait ca pr moi (pour SimpleComm sous 98 pour
parcourir les PC du réseau :) ^^)...
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
François Picalausa a écrit :
> Hello,
>
> Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
> Only return computers. If the user selects anything other than a
> computer,
> the OK button is grayed.
>
> Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
> PIDL.
> Comme indiqué sur
>
> : This interface (IMalloc) *must* be used to free memory that was
> *allocated
> by the Shell*
>
> La description de cette interface en odl compatible VB peut être
> trouvée
> dans ce post:
>
> C'est AMHA plus propre...
>
>
> "ng" a écrit dans le message de
> news:%
>> Salut,
>>
>> Const CSIDL_NETWORK = &H12
>> Const BIF_RETURNONLYFSDIRS = 1
>> Const BIF_BROWSEFORCOMPUTER = &H1000
>> Const MAX_PATH = 260
>> ...
>> Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
>> As String
>> Dim sChe As String
>> Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
>> sTitre, FormhWnd)
>> ShowNetworkFolder = sChe
>> End Function
>> Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
>> lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
>> strTitle As String = "Select Folder", Optional ByVal hWnd As Long > >> 0) As Long Dim bi As BROWSEINFO
>> ...
>> Call GlobalFree(lngIDL)
>> End Function
Salut,
Ah oui en effet j'avais fait ca pr moi (pour SimpleComm sous 98 pour
parcourir les PC du réseau :) ^^)...
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
François Picalausa <fpicalausa@chez.com> a écrit :
> Hello,
>
> Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
> Only return computers. If the user selects anything other than a
> computer,
> the OK button is grayed.
>
> Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
> PIDL.
> Comme indiqué sur
>
> : This interface (IMalloc) *must* be used to free memory that was
> *allocated
> by the Shell*
>
> La description de cette interface en odl compatible VB peut être
> trouvée
> dans ce post:
>
> C'est AMHA plus propre...
>
>
> "ng" <ng@ngsoft-fr.com> a écrit dans le message de
> news:%23PIiFCxfEHA.1356@TK2MSFTNGP09.phx.gbl
>> Salut,
>>
>> Const CSIDL_NETWORK = &H12
>> Const BIF_RETURNONLYFSDIRS = 1
>> Const BIF_BROWSEFORCOMPUTER = &H1000
>> Const MAX_PATH = 260
>> ...
>> Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
>> As String
>> Dim sChe As String
>> Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
>> sTitre, FormhWnd)
>> ShowNetworkFolder = sChe
>> End Function
>> Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
>> lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
>> strTitle As String = "Select Folder", Optional ByVal hWnd As Long > >> 0) As Long Dim bi As BROWSEINFO
>> ...
>> Call GlobalFree(lngIDL)
>> End Function
Salut,
Ah oui en effet j'avais fait ca pr moi (pour SimpleComm sous 98 pour
parcourir les PC du réseau :) ^^)...
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
François Picalausa a écrit :
> Hello,
>
> Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
> Only return computers. If the user selects anything other than a
> computer,
> the OK button is grayed.
>
> Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
> PIDL.
> Comme indiqué sur
>
> : This interface (IMalloc) *must* be used to free memory that was
> *allocated
> by the Shell*
>
> La description de cette interface en odl compatible VB peut être
> trouvée
> dans ce post:
>
> C'est AMHA plus propre...
>
>
> "ng" a écrit dans le message de
> news:%
>> Salut,
>>
>> Const CSIDL_NETWORK = &H12
>> Const BIF_RETURNONLYFSDIRS = 1
>> Const BIF_BROWSEFORCOMPUTER = &H1000
>> Const MAX_PATH = 260
>> ...
>> Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As String)
>> As String
>> Dim sChe As String
>> Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER, sChe,
>> sTitre, FormhWnd)
>> ShowNetworkFolder = sChe
>> End Function
>> Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
>> lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
>> strTitle As String = "Select Folder", Optional ByVal hWnd As Long > >> 0) As Long Dim bi As BROWSEINFO
>> ...
>> Call GlobalFree(lngIDL)
>> End Function
attention! ng françois est incollable
"ng" a écrit dans le message de news:Salut,
Ah oui en effet j'avais fait ca pr moi (pour SimpleComm sous 98 pour
parcourir les PC du réseau :) ^^)...
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
François Picalausa a écrit :Hello,
Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
Only return computers. If the user selects anything other than a
computer,
the OK button is grayed.
Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
PIDL.
Comme indiqué sur
ctions/shgetmalloc.aspThis interface (IMalloc) *must* be used to free memory that was
*allocated
by the Shell*
La description de cette interface en odl compatible VB peut être
trouvée
dans ce post:
C'est AMHA plus propre...
"ng" a écrit dans le message de
news:%Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As
String) As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER,
sChe, sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long >>>> 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
attention! ng françois est incollable
"ng" <ng@ngsoft-fr.com> a écrit dans le message de news:
e93Z0gxfEHA.556@tk2msftngp13.phx.gbl...
Salut,
Ah oui en effet j'avais fait ca pr moi (pour SimpleComm sous 98 pour
parcourir les PC du réseau :) ^^)...
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
François Picalausa <fpicalausa@chez.com> a écrit :
Hello,
Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
Only return computers. If the user selects anything other than a
computer,
the OK button is grayed.
Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
PIDL.
Comme indiqué sur
ctions/shgetmalloc.asp
This interface (IMalloc) *must* be used to free memory that was
*allocated
by the Shell*
La description de cette interface en odl compatible VB peut être
trouvée
dans ce post:
C'est AMHA plus propre...
"ng" <ng@ngsoft-fr.com> a écrit dans le message de
news:%23PIiFCxfEHA.1356@TK2MSFTNGP09.phx.gbl
Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As
String) As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER,
sChe, sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long >>>> 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function
attention! ng françois est incollable
"ng" a écrit dans le message de news:Salut,
Ah oui en effet j'avais fait ca pr moi (pour SimpleComm sous 98 pour
parcourir les PC du réseau :) ^^)...
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
François Picalausa a écrit :Hello,
Je ne pense pas que BIF_BROWSEFORCOMPUTER soit approprié:
Only return computers. If the user selects anything other than a
computer,
the OK button is grayed.
Aussi, GlobalFree n'est peut-être pas la solution pour décharger le
PIDL.
Comme indiqué sur
ctions/shgetmalloc.aspThis interface (IMalloc) *must* be used to free memory that was
*allocated
by the Shell*
La description de cette interface en odl compatible VB peut être
trouvée
dans ce post:
C'est AMHA plus propre...
"ng" a écrit dans le message de
news:%Salut,
Const CSIDL_NETWORK = &H12
Const BIF_RETURNONLYFSDIRS = 1
Const BIF_BROWSEFORCOMPUTER = &H1000
Const MAX_PATH = 260
...
Public Function ShowNetworkFolder(FormhWnd As Long, sTitre As
String) As String
Dim sChe As String
Call BrowseForFolder(CSIDL_NETWORK, BIF_BROWSEFORCOMPUTER,
sChe, sTitre, FormhWnd)
ShowNetworkFolder = sChe
End Function
Private Function BrowseForFolder(ByVal lngCSIdl As Long, ByVal
lngBifFlags As Long, ByRef strFolder As String, Optional ByVal
strTitle As String = "Select Folder", Optional ByVal hWnd As Long >>>> 0) As Long Dim bi As BROWSEINFO
...
Call GlobalFree(lngIDL)
End Function