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 


Help using DLLS in VDS5

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Wed Jun 18, 2003 1:20 pm    Post subject: Help using DLLS in VDS5 Reply with quote

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


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Wed Jun 18, 2003 1:26 pm    Post subject: Reply with quote

I ran into the exact same problem with the sql example. I cant figure it out though, anyone any idea?
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed Jun 18, 2003 1:42 pm    Post subject: Help Reply with quote

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


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Wed Jun 18, 2003 1:49 pm    Post subject: Reply with quote

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


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed Jun 18, 2003 1:51 pm    Post subject: Re: Help Reply with quote

mmhhh ...

i tried the very old memorymap.dll with this - it works.
we will have to ask tommy for this.

Hello Tommy ? Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Wed Jun 18, 2003 2:18 pm    Post subject: Reply with quote

At first glance it seems at though all external dll's will carry the overhead of having to define all their functions. Confused

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

Sanjuro

_________________
"Apparently three out of four people make up 75 percent of the population. Smile
Back to top
View user's profile Send private message MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Wed Jun 18, 2003 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Wed Jun 18, 2003 3:18 pm    Post subject: Reply with quote

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


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Wed Jun 18, 2003 3:31 pm    Post subject: FOUND FIX ! Reply with quote

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


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Wed Jun 18, 2003 3:48 pm    Post subject: Reply with quote

I am tearing my hair out trying to figure this out Mad Mad

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


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Wed Jun 18, 2003 3:55 pm    Post subject: Reply with quote

Rubes_sw wrote:
I am tearing my hair out trying to figure this out Mad Mad

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


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Thu Jun 19, 2003 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
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