| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Thu Nov 20, 2003 6:07 am Post subject: DSU Basics...Is there a starting place or docs |
|
|
DSU Basics...Is there a starting place or docs..?
would like to get reading material on "how to" build DSU for vds 5..
All feedback welcomed. thanks, nt. |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Nov 20, 2003 6:26 am Post subject: |
|
|
Basically you just build your DSU file like an ordinary subroutine or series of subroutines.
You grab the values passed to the DSU by %1, %2 and so on. Then go on and do your stuff.
If you wish to return a value to the calling script, you EXIT with the value as a parameter, like this:
EXIT %%output
Have a look in the units section:
http://forum.vdsworld.com/viewforum.php?f=19
Lots of the DSUs available there for download also include the source. If you study those a bit, you'll get the idea
pretty fast, I guess.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Thu Nov 20, 2003 8:44 am Post subject: |
|
|
Don't forget to mention the 'error -1' command, it sets @ok() to false after the command/function is called.
Best regards
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Thu Nov 20, 2003 8:17 pm Post subject: |
|
|
Thanks,
Dr Dread...stated:
| Quote: |
Lots of the DSUs available there for download also include the source. If you study those a bit, you'll get the idea
pretty fast, I guess.
|
I can't find the above file/files you mention above with source examples.
Could you provide a specific link?
NT |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Nov 20, 2003 10:23 pm Post subject: |
|
|
Look into the section mentioned above. Try to download a couple of the DSUs there. I know that CodeScript is
usually very generous about supplying source code along with his DSUs.
E.g. this one:
http://codescript.vdsworld.com/VDS5src/MouseInfo.zip
But there is a lot more there, just for the taking..
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Nov 21, 2003 6:07 am Post subject: |
|
|
Hi noveltech
As Dr Dread already said you can have a look at those links:
Many DSU there come with source.
Also if you want them at a single place then
you can visit:
http://codescript.vdsworld.com/
Both the sources code and dll sections have DSUs
and many of them come with source
You can also a take a look at the DSU tutorial:
http://codescript.vdsworld.com/VDS5src/DSU_Demo.zip _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|