Indigo Rose Software
  #1  
Old 11-22-2007
CrazyFrog's Avatar
CrazyFrog CrazyFrog is offline
Forum Member
 
Join Date: Jan 2007
Location: Resita ( Romania )
Posts: 118
I'm back with a new DLL :)

Hi guys, sorry for my huge innactivity..I have now Internet at my home and I can spend more time on this forum
I have made a small dll with Pb and it has one function : ListFiles
Bassically it searches for a file in the folder you specify (e.g : d:\\ ) more fast than the File.Find command.It searches through other folders on d:\\ also.

The ListFiles Function has 4 parameters :
-The directory to search
-The name of the file
-The extension
- another parameter that needs to be "0"
e.g. :
Code:
DLL.CallFunction("D:\\SeaFile.dll","ListFiles","\""..directory.."\""..",".."\""..file.."\""..",".."\""..extension.."\""..","0, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
i've attached the dll file
Attached Files
File Type: rar SeaFile.rar (3.0 KB, 65 views)
Reply With Quote
  #2  
Old 11-23-2007
mindstitchdr's Avatar
mindstitchdr mindstitchdr is offline
Indigo Rose Customer
 
Join Date: Dec 2004
Location: Texas
Posts: 239
Hey CrazyFrog, I've would love to use this but I can't seem to figure out how to use it. I copied and pasted your action and it gives me an error.

Code:
')' expected near '0'
Could you possibly through together a quick sample? Also could this be used with the Progress Bar Object?
Reply With Quote
  #3  
Old 11-23-2007
Haydeng's Avatar
Haydeng Haydeng is offline
Forum Member
 
Join Date: Feb 2007
Location: Missouri
Posts: 178
Use this:

Code:
DLL.CallFunction("D:\\SeaFile.dll","ListFiles","\""..directory.."\""..",".."\""..file.."\""..",".."\""..extension.."\""..","0"), DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
He mistyped and forgot a closing parentheses next to the "0".
Reply With Quote
  #4  
Old 11-23-2007
mindstitchdr's Avatar
mindstitchdr mindstitchdr is offline
Indigo Rose Customer
 
Join Date: Dec 2004
Location: Texas
Posts: 239
Thanks for the reply Haydeng, but I still get the exact same error.
Reply With Quote
  #5  
Old 11-23-2007
CrazyFrog's Avatar
CrazyFrog CrazyFrog is offline
Forum Member
 
Join Date: Jan 2007
Location: Resita ( Romania )
Posts: 118
ohh...sry...i've forgot
You need to define the "0" thing as a string .
Use this:
Code:
ID = "0"
DLL.CallFunction("D:\\SeaFile.dll","ListFiles","\""..directory.."\""..",".."\""..file.."\""..",".."\""..extension.."\""..","..ID, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
Hope this would help
Reply With Quote
  #6  
Old 11-23-2007
mindstitchdr's Avatar
mindstitchdr mindstitchdr is offline
Indigo Rose Customer
 
Join Date: Dec 2004
Location: Texas
Posts: 239
Thanks for the help CrazyFrog. What do I need to use as the return for this?
Reply With Quote
  #7  
Old 11-23-2007
CrazyFrog's Avatar
CrazyFrog CrazyFrog is offline
Forum Member
 
Join Date: Jan 2007
Location: Resita ( Romania )
Posts: 118
The function will return the full path to the file that was find.
In the future I hope to update the dll for multiple file searches.
Reply With Quote
  #8  
Old 11-24-2007
Solmos Solmos is offline
Forum Enthusiast
 
Join Date: Aug 2006
Posts: 355
Code:
for multiple file searches
Reply With Quote
  #9  
Old 11-24-2007
mindstitchdr's Avatar
mindstitchdr mindstitchdr is offline
Indigo Rose Customer
 
Join Date: Dec 2004
Location: Texas
Posts: 239
Thanks for the help (And the DLL) CrazyFog!
Reply With Quote
  #10  
Old 11-25-2007
jackdaniels's Avatar
jackdaniels jackdaniels is offline
Forum Member
 
Join Date: Mar 2007
Location: HeaveN
Posts: 527
can anyone give a small example with this dll please ???
Reply With Quote
  #11  
Old 11-25-2007
CrazyFrog's Avatar
CrazyFrog CrazyFrog is offline
Forum Member
 
Join Date: Jan 2007
Location: Resita ( Romania )
Posts: 118
Example

Ok , I've made a little example for you.

I've attached the .apz file

Some tips :
1. the folder can be either in format " d:\ " or " d:\\ "
2. the filename and the extension MUST be in lowercase
3. the extension must NOT have the "dot" in front : e.g : "exe" "dll"
Attached Files
File Type: apz SeaFile Example[CrazyFrog}.apz (128.3 KB, 73 views)

Last edited by CrazyFrog; 11-25-2007 at 07:38 AM.
Reply With Quote
  #12  
Old 11-30-2007
CrazyFrog's Avatar
CrazyFrog CrazyFrog is offline
Forum Member
 
Join Date: Jan 2007
Location: Resita ( Romania )
Posts: 118
First update for Misc-OCX plugin ( 1.1.0.0 ) will be released on sunday , 2 December 2007 , with 15 new functions amd the next release of SeaFile.DLL will happen next week...
Have a fun Coding....
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MZ-2nd DLL mz241508 AutoPlay Media Studio 6.0 12 01-14-2009 06:18 AM
FreePlugin: Splash Image Transition Engine DLL RizlaUK AutoPlay Media Studio 6.0 43 03-26-2008 09:41 AM
Private DLL cdundee MSI Factory 2.0 Discussion 4 08-17-2007 09:40 AM
Official Release Of SetMask DLL Worm AutoPlay Media Studio 5.0 23 01-24-2005 10:00 PM
SUF6 - Call DLL action Romahe Setup Factory 5.0 1 11-27-2001 07:02 AM


All times are GMT -6. The time now is 02:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software