| View previous topic :: View next topic |
| Author |
Message |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sat Aug 30, 2003 3:27 pm Post subject: Delphi units in vds |
|
|
Hi everyone,
Could Delphi units (*.pas) be included in vds ? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Aug 30, 2003 4:46 pm Post subject: |
|
|
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...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sat Aug 30, 2003 5:01 pm Post subject: |
|
|
Hi Skit3000
Thanks for the answer.
I 'm a good coder in delphi, but not as well in vds  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Aug 30, 2003 5:24 pm Post subject: |
|
|
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...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sat Aug 30, 2003 6:07 pm Post subject: |
|
|
Thank you
for this example Skit3000
it really helps me |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
|