View previous topic :: View next topic |
Author |
Message |
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Wed Jun 18, 2003 1:20 pm Post subject: Help using DLLS in VDS5 |
|
|
I can't get tommys vdsdll.dll to work in VDS5
eg. vdsdb.dll
When i run it in VDS5 it keeps saying Invalid command:
syntax:
external vdsdb.dll
db setup,"Microsoft Access Driver (*.mdb)",DSN=vdsworld,UID=admin,PWD=,DataDirectory=,DBQ=@path(%0)vdsworld.mdb
As per his examples.
Nathan |
|
Back to top |
|
|
DW Contributor
Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Wed Jun 18, 2003 1:26 pm Post subject: |
|
|
I ran into the exact same problem with the sql example. I cant figure it out though, anyone any idea? |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Jun 18, 2003 1:42 pm Post subject: Help |
|
|
Hi,
you have to define the commands and functions
ex:
external vdsdb.dll
#define command,db
#define function,db
(to define the db.... and @db....)
bye, Fabian |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Wed Jun 18, 2003 1:49 pm Post subject: |
|
|
Still does not work !
Says unknown error (101) ?
Does the dll have to be rewritten for VDS5 like pgware did for vdsipp.dll
Nathan |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Jun 18, 2003 1:51 pm Post subject: Re: Help |
|
|
mmhhh ...
i tried the very old memorymap.dll with this - it works.
we will have to ask tommy for this.
Hello Tommy ? |
|
Back to top |
|
|
Sanjuro Contributor
Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Wed Jun 18, 2003 2:18 pm Post subject: |
|
|
At first glance it seems at though all external dll's will carry the overhead of having to define all their functions.
If, like me you have the programmimg knowlege of a nun then this is gonna be an issue, for the experienced out there then it opens all kinds of doors into the windows dlls etc.
Need to make some good friends here on the board asap...
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population. |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Wed Jun 18, 2003 3:16 pm Post subject: |
|
|
You just need to define the main function command name:
For instance vdsipp has the command INTERNET, while there are commands like INTERNET ADD this is not what you define, you simply define the main command 'INTERNET' and the function:
define command,INTERNET
define function,INTERNET
you only need those two lines for dll's - of course changing the command/funciton name. |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Wed Jun 18, 2003 3:18 pm Post subject: |
|
|
Also please note that VDSIPP and VDSOBJ does have problems with vds 5. In some cases compiled exe's using those dll's throw up arithmetic errors. Many other dll's from developers too will throw up strange errors while they work fine with VDS 2 - 4. This is the reason vds 5 was delayed, we have been working with Commercial Research to find why this is happening however so far haven't tracked the exact reasons. |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Wed Jun 18, 2003 3:31 pm Post subject: FOUND FIX ! |
|
|
Another example:
external vdsdll.dll
#define command,dll capture
#define function,dll capture
DLL CAPTURE,CAPTURE,temp.bmp,@fsub(@mouse(y),5),@fsub(@mouse(x),4),10,10
does not work keeps saying invalid command !
Replace:
#define command,dll capture
#define function,dll capture
With:
#define command,dll,capture
#define function,dll,capture
Why does this work ?
oops ! Still getting some errors ! Unknown error (101) when it comes to run the command !
Nathan |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Wed Jun 18, 2003 3:48 pm Post subject: |
|
|
I am tearing my hair out trying to figure this out
Start from the START :
REm Call the DLL
external vdsdll.dll
Rem Define the command and function
#define command,dll
#define function,dll
Rem I had to add this aswell
#define command,dll,capture
#define function,dll,capture
rem get the pixel
info Caprtured: @DLL(capture,pixel,@mouse(x),@mouse(y))
Rem ERROR ERROR
the following error occurs :
Error: Invlaid Variable name or too many variables !
Help
Nathan |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Wed Jun 18, 2003 3:55 pm Post subject: |
|
|
Rubes_sw wrote: | I am tearing my hair out trying to figure this out
Start from the START :
REm Call the DLL
external vdsdll.dll
Rem Define the command and function
#define command,dll
#define function,dll
Rem I had to add this aswell
#define command,dll,capture
#define function,dll,capture
rem get the pixel
info Caprtured: @DLL(capture,pixel,@mouse(x),@mouse(y))
Rem ERROR ERROR
the following error occurs :
Error: Invlaid Variable name or too many variables !
Help
Nathan |
This code should be sufficient:
REm Call the DLL
external vdsdll.dll
Rem Define the command and function
#define command,dll
#define function,dll
rem get the pixel
info Caprtured: @DLL(capture,pixel,@mouse(x),@mouse(y))
It may be so however that the "dll" command or @dll() function conflicts with one of
VDS's built-in functions, in which case it would never work, unless renaming the
command and function to something else. I yet have to test this, but if this is true,
then I will contact S.A.D.E. about it, as seemingly it seems easier to fix this in VDS,
than that all user scripts using the VDSDLL would require many updates.
Also shortly I'll start updating all the example scripts for VDS 5 and check for other
compatibility issues.
Tommy |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Jun 19, 2003 10:31 am Post subject: |
|
|
Tommy i have tried your method above, but it still does not work !
Are you going to release the updated examples and maybe the dll soon?
I do not want to buy VDS5 until i know that your dll works with it as 95% of my programs use your dll.
Nathan |
|
Back to top |
|
|
|