Private Declare Function SearchTreeForFile Lib "IMAGEHLP.DLL" (ByVal lpRootPath As String, ByVal lpInputName As String, ByVal lpOutputName As String) As Integer
Private Const MAX_PATH As Short = 260
Public Function FindFile(ByRef RootPath As String, ByRef FileName As String) As String
I thought , it'll be easier job to use this ready proj to try out .
Usage : you'll find two textboxes , in the 1# type : C: (without backslash) , in the 2# type file name : setup.txt , then click the botton , if the file was found , msgbox will popup , if not , empty msgbox will show up . (don't worry , it won't take much time .It's damn fast ) .
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
API is faster (very fast) . Your code needs the user to provide the full path , I mean it won't search all folder as the API . I know I can search the entire folders but still slow . Can you help me to convert VB code to C# ?
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
When I download the program, it was getting errors, so I made a few changes and it compiled. Everything seem to be working, except that I'm getting an exception if the file is not found. I cant seem to find a work around for the Space function.
I also add a delegate and a callback function to do the search asynchronously, because it was whiting out the screen.
Originally posted by Pirate Your website is amazing . But I can't seem to find anything related to what's here .
Thanks!!
I'm sorry that there is nothing related to this there. At the moment I only have about 16 Function calls in the Function Guide. I am slowly adding like 1 or 2 a day. It's hard work. I have to add VB6, VB.NET, and C#.NET code, and I even have code examples for some of them.
I encourage you to check it out. If you have certain Functions that you would like added to the Function Guide, just feel free to email me. I have an email link at the site. Any Function suggestions I get, will be added first.
Originally posted by DevGrp Well I really dont know . I made a text file name setup.txt on my c drive. The program found it, but the Messagebox was blank.
So , it's not working properly . The msgbox will show up in both cases : found(file name on the msgbox) or not found(empty msgbox) .