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 


Delphi units in vds

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sat Aug 30, 2003 3:27 pm    Post subject: Delphi units in vds Reply with quote

Hi everyone,

Could Delphi units (*.pas) be included in vds ?
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Aug 30, 2003 4:46 pm    Post subject: Reply with quote

You can't include them into VDS directly. You should compile the *.pas file(s) into a DLL. Then you should be able to load that DLL with the @lib() function of VDS. I don't know how experienced you are with Delphi, but you can always ask for some help here... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sat Aug 30, 2003 5:01 pm    Post subject: Reply with quote

Hi Skit3000

Thanks for the answer.

I 'm a good coder in delphi, but not as well in vds Confused
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Aug 30, 2003 5:24 pm    Post subject: Reply with quote

I'll brief explain how to call a non-VDS dll (Delphi) with VDS.

First, load the DLL:

loadlib dllname

After that, use the @lib() function to call the proper function:

%%tempvariable = @lib(dllname,functionname,STR:,parameter1,parameter2,parameter3)

Please note that the "STR:" I use, should be "INT:" if your DLL returns an intregger in steed of a string.

Then unload the DLL to avoid errors:

freelib dllname

I hope you can do something with this explaination... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sat Aug 30, 2003 6:07 pm    Post subject: Reply with quote

Thank you
for this example Skit3000

it really helps me
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Aug 30, 2003 6:27 pm    Post subject: Reply with quote

Glad to help... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
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