Click here to Skip to main content
15,920,632 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: FindFirstFileEx() and Unicode Pin
TnTinMn5-Jun-13 18:14
TnTinMn5-Jun-13 18:14 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 8:08
treddie6-Jun-13 8:08 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 8:22
TnTinMn6-Jun-13 8:22 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 8:53
treddie6-Jun-13 8:53 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 9:17
TnTinMn6-Jun-13 9:17 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 10:07
treddie6-Jun-13 10:07 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 14:29
treddie6-Jun-13 14:29 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 15:06
TnTinMn6-Jun-13 15:06 
Edit: I deleted the upload, forgot I was in the middle of trying an ASCII version. Will repost a link once I get it back to Unicode.

That's strange. I tried running it on a low privilege account and it run fine on Vista/32 bit.

In case anything got messed up while I was trying to post the code(I had some issues) I've uploaded the project (VS2008) to: http://sdrv.ms/18SnASR

This version is a bit different because I've been playing with it bit this evening. You will also find the syntax for the FindFirstFileEx function in the scraps.txt file.


Try un-commenting the code in this block:
VB
If hFile.DangerousGetHandle.ToInt32 = -1 Then
   ' just ignoring errors for this demo, most common is 5 - Access Denied
   ' System Error Codes
   ' http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381%28v=vs.85%29.aspx
   Dim [error] As Int32 = Marshal.GetLastWin32Error()
   Stop
   Return
Else

and see what error code, if any, you are getting.

modified 6-Jun-13 21:43pm.

GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 15:41
TnTinMn6-Jun-13 15:41 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 16:07
treddie6-Jun-13 16:07 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 18:04
treddie6-Jun-13 18:04 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie10-Jun-13 10:02
treddie10-Jun-13 10:02 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn10-Jun-13 14:44
TnTinMn10-Jun-13 14:44 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie10-Jun-13 16:45
treddie10-Jun-13 16:45 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn10-Jun-13 17:18
TnTinMn10-Jun-13 17:18 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie10-Jun-13 18:30
treddie10-Jun-13 18:30 
AnswerRe: FindFirstFileEx() and Unicode Pin
treddie11-Jun-13 13:22
treddie11-Jun-13 13:22 
QuestionApplication with calendar menu Pin
n3814-Jun-13 3:26
n3814-Jun-13 3:26 
AnswerRe: Application with calendar menu Pin
Dave Kreskowiak4-Jun-13 5:42
mveDave Kreskowiak4-Jun-13 5:42 
GeneralRe: Application with calendar menu Pin
n3814-Jun-13 6:24
n3814-Jun-13 6:24 
GeneralRe: Application with calendar menu Pin
Dave Kreskowiak4-Jun-13 10:33
mveDave Kreskowiak4-Jun-13 10:33 
GeneralRe: Application with calendar menu Pin
n3814-Jun-13 10:53
n3814-Jun-13 10:53 
GeneralRe: Application with calendar menu Pin
Dave Kreskowiak4-Jun-13 11:01
mveDave Kreskowiak4-Jun-13 11:01 
GeneralRe: Application with calendar menu Pin
n3814-Jun-13 12:10
n3814-Jun-13 12:10 
GeneralRe: Application with calendar menu Pin
Edward Giles25-Jun-13 23:00
Edward Giles25-Jun-13 23:00 

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.