forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSEVENT.DLL - Fire events from within your program

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Wed Nov 10, 2010 11:41 pm    Post subject: VDSEVENT.DLL - Fire events from within your program Reply with quote

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

.



vdsevent_dll.zip
 Description:
VDSEVENT.DLL
Fire custom events from within your program.

Fileversion: 1.0.1

Download
 Filename:  vdsevent_dll.zip
 Filesize:  3.87 KB
 Downloaded:  461 Time(s)



Last edited by bornsoft on Thu Nov 11, 2010 6:08 pm; edited 5 times in total
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Thu Nov 11, 2010 5:42 am    Post subject: Reply with quote

Awesome job, it's nice to see some enthusiasm with vds still Smile Have fun with the dll's, its definately challenging and a nice feeling when you get a dll finished.
Back to top
View user's profile Send private message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Thu Nov 11, 2010 5:46 am    Post subject: Reply with quote

Cool! Thanks.
Back to top
View user's profile Send private message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 395
Location: ITALY

PostPosted: Thu Nov 11, 2010 6:21 am    Post subject: Reply with quote

Wow Very Happy
Very cool

great job bornsoft

thanks
Back to top
View user's profile Send private message Send e-mail
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Thu Nov 11, 2010 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group