| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 5:05 pm Post subject: I can't get VDSDLL3 to work with my VDS5? |
|
|
| I get errors on the DLL commands, anyone know whats wrong? |
|
| Back to top |
|
 |
Skit3000 Admin Team

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


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 5:29 pm Post subject: |
|
|
| what do I define them too? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Apr 06, 2004 5:33 pm Post subject: |
|
|
Like I just did... I'll explain the #define command a bit. The first parameter of #define tells the compiler if a command or function is added. The second one gives the name of the function or the command... This will give you things like this:
| Code: | #define command,MySelfmadeCommand
#define function,Just-a-functionname |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 5:41 pm Post subject: |
|
|
but I didnt write the DLL, so i have no idea what the proper names are  |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue Apr 06, 2004 5:59 pm Post subject: |
|
|
VDSDLL3 has a nice help file and lots of examples... It's all in there.
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 6:02 pm Post subject: |
|
|
The Examples is where I get the errors
Never noticed that tiny chm file, let me check it out, too bad they forgot to include a Readme would have done the trick  |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 6:06 pm Post subject: |
|
|
nop, the chm help file is help at all concerning the errors
maybe i should stay away from DLLs  |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 6:35 pm Post subject: |
|
|
At least I found how to get around the VDS5 help EXAMPLE bug (you know where when you click the example that is susposed to load a demo into VDS, I just close VDS, then load the chm, and its works finally
Since i didnt notice any functions, i took a wild gues on how to get it running, and added this '#define command,dll' now I have a dialog from the dll saying if I'm not the original author, blah blah blah.. and its stuck in a loop, and its not seen in ADD-Remove Programs.
Guess I'm forced to reboot now.  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Apr 06, 2004 6:50 pm Post subject: |
|
|
You should use #define with the command you're using for the dll,
for example the vdsobj.dll has the 'object' command and function, so you
would use:
| Code: | #define command,object
#define function,object
REM then you can do things like OBJECT SET,object1..... etc
REM and things like INFO @object(..etc..) |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 7:13 pm Post subject: |
|
|
cool
So I'm kinda like call these DLL's for certain commands or function..
Sorta like I did in one of my older programs:
Main program:
| Code: | | #include C:\VDS5\cdvol.dsc |
TAB page 5:
| Code: | #define command,cdvolume
:cdvolume |
So I would just replace the #INCLUDE with #DEFINE command,DLL in my main program.
And add #DEFINE FUNCTION,DLL in the DLL script. ??? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Apr 06, 2004 7:21 pm Post subject: |
|
|
I'm not sure exactly what you mean - but here's a script from the VDSGUI
examples directory that uses this concept... notice that #define ...,gui
is used, so that the commands and functions can be initialized and used
later in the script.
| Code: | REM Load the VDSGUI DLL
EXTERNAL VDSGUI,DEMO
REM In VDS 5 you need to define the command and
REM funcction name of the External DLL.
#DEFINE COMMAND,GUI
#DEFINE FUNCTION,GUI
DIALOG CREATE,TaskIcon Demo - VDSGUI DLL,-1,0,287,115,NOMIN,CLASS guitestwin
DIALOG ADD,TEXT,TEXT1,23,20,,,"The Icon detects Lt Click,Double click and Rt clicks."
DIALOG ADD,BUTTON,BUTTON1,71,60,169,24,Click to see a Balloon Tip!
DIALOG SHOW
REM Add our window to the dll subclass routine:
GUI SUBCLASS,#guitestwin
REM We will add a clik event to the Balloon Tooltip called TASKICON<ID>TIPCLICK
REM when user Left clicks the Taskicon
GUI OPTION,TASKICONTIPCLICK,ON
REM Make the taskicon recover from a explorer crash:
GUI OPTION,TASKICONCRASHRECOVERY
REM add the label below such that your
REM GUI ADD, TASKICON is executed if explorer/taskicon crashes.
:TASKICONCRASHED
REM Now add your Taskicon elements:
REM Syntax:
REM GUI ADD, TASKICON,<Element Name>,<window>,<icon path>,<tooltip text>
GUI ADD,TASKICON,TASKICON1,#guitestwin,5,VDSGUI.DLL DEMO@CR()Click Taskicon for further info!
:EVLOOP
WAIT EVENT
GOTO @EVENT()
:TASKICON1CLICK
REM Disable the taskicon
GUI DISABLE,TASKICON,TASKICON1,#guitestwin
INFO @GUI(CLICK,B)!
REM Execute your custom commands and functions
REM Your commands and functions go here :
REM // COMMANDS AND FUNCTIONS //
REM Now Re-enable the Task icon
REM This is needed if you need to detect both Lt Click
REM and double click. Otherwise Disable-Enable Not required.
GUI ENABLE,TASKICON,TASKICON1,#guitestwin
GOTO EVLOOP
:TASKICON1TIPCLICK
REM If the user clicks the Balloon Tooltip
INFO User Cliked the TASKICON1 Balloon tooltip!@CR()Add your Code for Download Here!
GOTO EVLOOP
:BUTTON1BUTTON
REM Show Balloon tooltip:
REM Syntax:
REM GUI SET, TASKICON,<Element Name>,<window>,BALLOONTIP,<BlnTipIcon>,<BlnTipTitle>,<BlnTipText>,<Tmeout>
GUI SET,TASKICON,TASKICON1,#guitestwin,BALLOONTIP,1,VDSGUI DLL - A Visual DialogScript Extension,"A new version of VDSGUI with more features is now available at http://codescript.vdsworld.com. Click to Start Download!"@CR()[Right Click to Escape]
GOTO EVLOOP
:CLOSE
REM You should remove all the dll dilaog elements
REM to prevent a windows error
GUI REMOVE,TASKICON,TASKICON1,#guitestwin
REM Unsubclass our dialog.
GUI UNSUBCLASS,#guitestwin
EXIT |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 7:38 pm Post subject: |
|
|
So I have to have these 2 as well as the EXTERNAL in my Main program?
| Code: | #DEFINE COMMAND,GUI
#DEFINE FUNCTION,GUI |
|
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Apr 06, 2004 7:43 pm Post subject: |
|
|
The VDSDLL3 can handle regular expressions with VDSREGEX, I could use that if I ever get this all hooked up  |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Tue Apr 06, 2004 7:55 pm Post subject: |
|
|
Here is what you need to do:
With the VDSDLL you need to define the command/function 'DLL'. The reason you do this is becaues VDS has no idea what the command/function 'DLL' is.
In previous versions of VDS you did not have to define any new commands/functions, with VDS5 you do.
So if you ever use a DLL you need to define its command and function so VDS knows to execute the dll.
Example:
VDSDLL's command/function is 'DLL'>
#define command,DLL
#define function,DLL
external VDSDLL.DLL,<serial number>
VDSOBJ's command/function is 'OBJECT' >
#define command,OBJECT
#define function,OBJECT
external VDSOBJ.DLL,<serial number>
VDSIPP's command/function is 'INTERNET' >
#define command,INTERNET
#define function,INTERNET
external VDSIPP.DLL,<serial number>
After you define the commands/functions you can then use any command/function within the dll since vds now recognizes those commands/functions. |
|
| Back to top |
|
 |
|
|
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
|
|