Click here to Skip to main content
16,005,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHIde the courser over a control Pin
nishkarsh_k20-Nov-07 5:42
nishkarsh_k20-Nov-07 5:42 
AnswerRe: HIde the courser over a control Pin
Ajay.k_Singh20-Nov-07 17:37
Ajay.k_Singh20-Nov-07 17:37 
AnswerRe: HIde the courser over a control Pin
MohammadAmiry20-Nov-07 17:42
MohammadAmiry20-Nov-07 17:42 
QuestionHow to get the no of records in random acccess files Pin
Amer Rehman20-Nov-07 5:33
Amer Rehman20-Nov-07 5:33 
AnswerRe: How to get the no of records in random acccess files Pin
Dave Kreskowiak21-Nov-07 5:03
mveDave Kreskowiak21-Nov-07 5:03 
QuestionVB.NET 2006 Radio button becomes checked when previous button depressed Pin
QuickBooksDev20-Nov-07 2:12
QuickBooksDev20-Nov-07 2:12 
AnswerRe: VB.NET 2006 Radio button becomes checked when previous button depressed Pin
Dave Kreskowiak21-Nov-07 4:50
mveDave Kreskowiak21-Nov-07 4:50 
QuestionSHChangeNotifyRegister problem with file create Pin
sprice8620-Nov-07 2:12
professionalsprice8620-Nov-07 2:12 
Hi
I am not very familiar with shell programming. I am using SHChangeNotifyRegister to be notified of file system changes. Everything works fine except with the SHCNE_CREATE notification when a new file is created.

Then, in this case only, the pidl returned by the function will provide the new file's display name, but SHGetPathFromIDList will not provide the path. I can only guess that in the case of a new file being created, the function only sends a pidl which is relative to the parent folder.

I wondered if anyone knew how I can get from the pidl provided by SHGetPathFromIDList to a fully qualified pidl so that I can retrieve the new file's system path.?

Strangely,when a file is deleted the function does provide a fully qalified pidl from which the path may be obtained.

Public Sub NotificationReceipt(wParam As Long, lParam As Long)

Dim shns As SHNOTIFYSTRUCT
Dim sDisplayname As String
Dim NewName As String
Dim OldName As String
Dim FileData As FILE_DATA

On Error Resume Next

'Fill the SHNOTIFYSTRUCT from its pointer.

CopyMemory shns, ByVal wParam, Len(shns)
If shns.dwItem1 Then
sDisplayname = GetDisplayNameFromPIDL(shns.dwItem1) 'works in all cases
If Len(sDisplayname) Then
OldName = GetPathFromPIDL(shns.dwItem1) 'fails only when lParam SHCNE_CREATE
........................
Else

End If

End If

If shns.dwItem2 Then

sDisplayname = GetDisplayNameFromPIDL(shns.dwItem2)
NewName = GetPathFromPIDL(shns.dwItem2)
If Len(sDisplayname) Then

......................

Else

End If
End If

..................


Any help would be greatly appreciated.Sigh | :sigh:

Bertram

QuestionPagesetup & PrintPreview Pin
MrFulvio20-Nov-07 1:07
MrFulvio20-Nov-07 1:07 
AnswerRe: Pagesetup & PrintPreview Pin
nishkarsh_k20-Nov-07 17:50
nishkarsh_k20-Nov-07 17:50 
GeneralRe: Pagesetup & PrintPreview Pin
MrFulvio20-Nov-07 20:37
MrFulvio20-Nov-07 20:37 
QuestionFile copy in vb6 Pin
w20919-Nov-07 22:25
w20919-Nov-07 22:25 
AnswerRe: File copy in vb6 Pin
Alex Feature19-Nov-07 22:44
Alex Feature19-Nov-07 22:44 
GeneralRe: File copy in vb6 Pin
w20919-Nov-07 23:21
w20919-Nov-07 23:21 
GeneralRe: File copy in vb6 Pin
ChandraRam21-Nov-07 0:54
ChandraRam21-Nov-07 0:54 
QuestionUpdate database from Datagrid Pin
matjame19-Nov-07 20:09
matjame19-Nov-07 20:09 
AnswerRe: Update database from Datagrid Pin
Alex Feature19-Nov-07 21:27
Alex Feature19-Nov-07 21:27 
GeneralRe: Update database from Datagrid Pin
matjame19-Nov-07 21:30
matjame19-Nov-07 21:30 
GeneralRe: Update database from Datagrid Pin
Vimalsoft(Pty) Ltd21-Nov-07 19:14
professionalVimalsoft(Pty) Ltd21-Nov-07 19:14 
Questionsaving into xml Pin
for120619-Nov-07 19:50
for120619-Nov-07 19:50 
AnswerRe: saving into xml Pin
Dave Kreskowiak21-Nov-07 4:58
mveDave Kreskowiak21-Nov-07 4:58 
QuestionInputbox () in Vb.net Pin
VB 8.019-Nov-07 19:30
VB 8.019-Nov-07 19:30 
AnswerRe: Inputbox () in Vb.net Pin
Johan Hakkesteegt20-Nov-07 2:21
Johan Hakkesteegt20-Nov-07 2:21 
GeneralRe: Inputbox () in Vb.net Pin
for120620-Nov-07 18:23
for120620-Nov-07 18:23 
GeneralRe: Inputbox () in Vb.net Pin
Johan Hakkesteegt20-Nov-07 20:05
Johan Hakkesteegt20-Nov-07 20:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.