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 


DSU Basics...Is there a starting place or docs

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Thu Nov 20, 2003 6:07 am    Post subject: DSU Basics...Is there a starting place or docs Reply with quote

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
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Nov 20, 2003 6:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Thu Nov 20, 2003 8:44 am    Post subject: Reply with quote

Don't forget to mention the 'error -1' command, it sets @ok() to false after the command/function is called.

Best regards Smile
Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Thu Nov 20, 2003 8:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Nov 20, 2003 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Nov 21, 2003 6:07 am    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
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 -> General Help 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