|
#1
|
||||
|
||||
|
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);
|
|
#2
|
||||
|
||||
|
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' |
|
#3
|
||||
|
||||
|
Use this:
Code:
DLL.CallFunction("D:\\SeaFile.dll","ListFiles","\""..directory.."\""..",".."\""..file.."\""..",".."\""..extension.."\""..","0"), DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
|
|
#4
|
||||
|
||||
|
Thanks for the reply Haydeng, but I still get the exact same error.
|
|
#5
|
||||
|
||||
|
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);
|
|
#6
|
||||
|
||||
|
Thanks for the help CrazyFrog. What do I need to use as the return for this?
|
|
#7
|
||||
|
||||
|
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. |
|
#8
|
|||
|
|||
|
Code:
for multiple file searches |
|
#9
|
||||
|
||||
|
Thanks for the help (And the DLL) CrazyFog!
|
|
#10
|
||||
|
||||
|
can anyone give a small example with this dll please ???
|
|
#11
|
||||
|
||||
|
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" Last edited by CrazyFrog; 11-25-2007 at 07:38 AM. |
|
#12
|
||||
|
||||
|
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.... |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.









Linear Mode

