View previous topic :: View next topic |
Author |
Message |
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 763 Location: Eastman, GA
|
Posted: Sun Jan 12, 2003 5:23 pm Post subject: External Modules |
|
|
I would like to see some future version of VDS, maybe not 5, have the ability to include labels contained in external script files. Have say a include directory and use that external.
C++ example
Code: |
#include <iostream.h>
|
That sort of a thing.
Little bit late to request this for version 5 I think
NodNarb |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Jan 12, 2003 7:05 pm Post subject: |
|
|
That was what I was thinking of a little while ago too! Only for mine there had (has) to be an DLL who handles the communication between the two scripts...
Sjoerd van der Hoorn wrote: |
If I make something like a string manipulate script, people have to use SUBS to
use it like this:
%%string = Hello World
%%replace = Hello
%%replacewith = Hi
gosub Replacestring
I want a DLL that makes it easy to call this stuff:
@script(replace,Hello World,Hello,Hi)
BUT, the @script() function must keep a link with a second EXE, which does all the work.
This DLL and EXE must communicate with eichother by the REGISTRY or something:
--------------------------------------------------------------------------------
First script does this:
%%string = @script(replace,Hello World,Hello,Hi)
The DLL sends it to the EXE by registry:
registry write,ROOT,MyProgram,Parameter1,replace
registry write,ROOT,MyProgram,Parameter1,Hello World
registry write,ROOT,MyProgram,Parameter1,Hello
registry write,ROOT,MyProgram,Parameter1,Hi
The EXE is doing something with this info, and sends this back to the DLL by registry:
registry write,ROOT,MyProgram,Sendtoscript,Hi World
The DLL then sends it back to the first script with this value:
Hi World
--------------------------------------------------------------------------------
There must also be an option to send EVENTS and ERROR codes. If this is possible to make,
there can a lot be done for users who start programming in VDS, and more advanced users,
because it's easier to use then SUB-Routines...
|
BTW. Your idea isn't that hard... Make something like this:
Server:
Code: |
run external.exe Reverse,wait
list create,1
list loadfile,1,output.txt
info Output:@cr()@text(1)
list close,1
|
Client:
Code: |
goto %1
:Reverse
rem Place here the code
list create,1
list add,1,Output text
list savefile,1,output.txt
list close,1
exit
:Othercommand
exit
|
|
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jan 12, 2003 8:02 pm Post subject: |
|
|
Ooooo... Yeah, wouldn't that be a neat thing to see in VDS.
-Garrett |
|
Back to top |
|
|
Hortalonus Valued Contributor
Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Mon Jan 13, 2003 12:50 am Post subject: |
|
|
Here, here! Excellent suggestion. |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Mon Jan 13, 2003 1:35 am Post subject: |
|
|
That is an EXCELLENT suggestion !
Hope it can be in the next release of VDS... |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Jan 13, 2003 5:34 am Post subject: |
|
|
I'm for breaking my sources up into smaller more managable units. I've
wanted something like this for a long time now myself. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Jan 13, 2003 8:51 am Post subject: |
|
|
Actually ya can do that now by writing a simple program
that splices the files together before compiling...
I made a front-end for VDS 2.5 that did this very thing
using its' command line compiler (there was a size limit
on what the IDE could handle). The front-end auto opened
all project files in cascaded notepads for editing. It would
splice them together for compiling, and there was an option
to view the whole file together using DOS EDIT (needed the
line numbers to find errors).
For VDS3 and later, all you'd need is a util in the tools menu
to splice the files together, then load the spliced file into the
IDE to test or compile it. And ya could use any editor ya want
(MDI etc.) for editing the single files...
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 13, 2003 3:46 pm Post subject: |
|
|
Hi All,
Skit3000 asked me awhile back to build a DLL to do this. I have accepted this as my new project. I will keep everyone posted. This may be part of Gadget soon _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 13, 2003 8:16 pm Post subject: |
|
|
Yeah, but it sure would be nice to be able to just have all these modules
open in the IDE, like using a tabbed interface or something for the editor,
so you could quickly get around.
-Garrett |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1564
|
Posted: Mon Jan 13, 2003 10:22 pm Post subject: |
|
|
ehehehe Quote: | tabbed interface or something | |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jan 13, 2003 11:22 pm Post subject: |
|
|
Tommy wrote: | The "VDU Convertor" was too, but it is no longer available. |
The old "VDS~Shack" is still there at
http://www.geocities.com/SiliconValley/Bay/1162/
but unfortunately the link to the VDU converter doesn't work anymore. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Tue Jan 14, 2003 1:22 am Post subject: |
|
|
You guys are so bad...
PGWARE wrote: | ehehehe Quote: | tabbed interface or something | |
_________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1564
|
Posted: Tue Jan 14, 2003 3:12 am Post subject: |
|
|
eheheheheh he said bahaahahahah |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Jan 14, 2003 4:23 am Post subject: |
|
|
PGWARE wrote: | eheheheheh he said bahaahahahah |
Yeah, you know, or something.
-Garrett |
|
Back to top |
|
|
|