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 


I can't get VDSDLL3 to work with my VDS5?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 5:05 pm    Post subject: I can't get VDSDLL3 to work with my VDS5? Reply with quote

I get errors on the DLL commands, anyone know whats wrong?
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: Tue Apr 06, 2004 5:22 pm    Post subject: Reply with quote

When using VDS 5, you have to #define the commands and functions you are going to use:

Code:
external vdsdll.dll
#define command,dll
#define function,dll

_________________
[ 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
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 5:29 pm    Post subject: Reply with quote

what do I define them too?
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: Tue Apr 06, 2004 5:33 pm    Post subject: Reply with quote

Like I just did... Smile 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: Smile

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
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 5:41 pm    Post subject: Reply with quote

but I didnt write the DLL, so i have no idea what the proper names are Crying or Very sad
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


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

PostPosted: Tue Apr 06, 2004 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 6:02 pm    Post subject: Reply with quote

The Examples is where I get the errors Sad

Never noticed that tiny chm file, let me check it out, too bad they forgot to include a Readme would have done the trick Smile
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 6:06 pm    Post subject: Reply with quote

nop, the chm help file is help at all concerning the errors Sad

maybe i should stay away from DLLs Laughing
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 6:35 pm    Post subject: Reply with quote

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 Smile

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. Sad

Guess I'm forced to reboot now. Embarassed
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Apr 06, 2004 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 7:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Apr 06, 2004 7:21 pm    Post subject: Reply with quote

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. Smile

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
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 7:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Apr 06, 2004 7:43 pm    Post subject: Reply with quote

The VDSDLL3 can handle regular expressions with VDSREGEX, I could use that if I ever get this all hooked up Laughing
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Tue Apr 06, 2004 7:55 pm    Post subject: Reply with quote

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
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
Goto page 1, 2  Next
Page 1 of 2

 
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