View previous topic :: View next topic |
Author |
Message |
bornsoft Contributor
Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Wed Nov 10, 2010 11:41 pm Post subject: VDSEVENT.DLL - Fire events from within your program |
|
|
Hello VDS community,
Here is a VDS extension DLL that gives you the ability to fire custom events from within your application.
Nothing more, nothing less.
Test it. It's FreeWare.
This one is my first DLL at all and also the first time I did program in C.
Many thanks to Vdsalchemist for the mpSelect.dll example in C.
The VDSEVENT.DLL is used in the same way as any VDS Extension by calling "EXTERNAL vdsevent.dll" and defining a command: "#DEFINE Command , FireEvent" . From within your script you run the command "FireEvent <EventName>".
The name of the event can be anything you like, either an existing VDS-Event-Name or a free chosen.
I know, that GADGET.DLL (and maybe others too) is also able to fire events. The main purpose for me was to learn how a DLL works and how I can make it and also it was a good startingpoint for me to step into C-Language.
A big benefit of VDSEVENT.DLL is, that it's extremly small - only 7 kilobytes.
So it's a good idea to include it as a resource into your projekt and even into a DSU as hex-data, so that it can be used from your DSU functions.
If I have time, I will add more functionality, for example to pass events to other VDS-Windows and - if possible, sheduled or delayed events.
So please check it out and let me hear if you like it (yeah, it's a bit quiet here the last time).
You can download it HERE and if you are logged in, you should see a download-link below.
Greetings.
bornSoft
.
Description: |
VDSEVENT.DLL Fire custom events from within your program.
Fileversion: 1.0.1 |
|
Download |
Filename: |
vdsevent_dll.zip |
Filesize: |
3.87 KB |
Downloaded: |
1543 Time(s) |
Last edited by bornsoft on Thu Nov 11, 2010 6:08 pm; edited 5 times in total |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Thu Nov 11, 2010 5:42 am Post subject: |
|
|
Awesome job, it's nice to see some enthusiasm with vds still Have fun with the dll's, its definately challenging and a nice feeling when you get a dll finished.
|
|
Back to top |
|
|
Boo Valued Contributor
Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Thu Nov 11, 2010 5:46 am Post subject: |
|
|
Cool! Thanks.
|
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Thu Nov 11, 2010 6:21 am Post subject: |
|
|
Wow
Very cool
great job bornsoft
thanks
|
|
Back to top |
|
|
bornsoft Contributor
Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Thu Nov 11, 2010 6:10 pm Post subject: |
|
|
Thank you guys,
and I have a question to the DLL developers of you:
If VDS imports something from a DLL, an errorcode needs to be returned from the DLL so that VDS knows, everything was OK (or not) and go to the next line.
Within my DLL code, if I send the returncode, the function is finished. Any following code is not executed.
How can I implement that VDS gets the returncode but the DLL keeps running?
I need this for delayed or sheduled events.
At the moment if I delay with "sleep(xxxx)" the VDS script is also halted, because it's waiting for the returncode to succeed.
Thanks.
bornSoft
.
|
|
Back to top |
|
|
|