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 


Newb trying DLL's now!! AHHHH!!

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Fri Oct 28, 2005 9:17 pm    Post subject: Newb trying DLL's now!! AHHHH!! Reply with quote

OK.. So i am trying to lear as i go, and am trying to figure out DLL's. I tied to put one in a simple program, and when I try and run it, it comes up in the compiler, as an error for line 2, which is:
EXTERNAL VDSUG.DLL

Is this the right format?? I tried putting it in the directory i loaded it into, I also tried putting it in the SYSTEM32 folder, and still have no luck!!


Anyone offer assistance to someone who feels like shooting the computer??



Thanks
Back to top
View user's profile Send private message Yahoo Messenger
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Fri Oct 28, 2005 10:40 pm    Post subject: Reply with quote

Hi Smile
what OS you are using?
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Oct 29, 2005 3:25 pm    Post subject: Reply with quote

if you are using VDS 5, you need to define the command and function
names first. For example,
Code:

  #define COMMAND,UG
  #define FUNCTION,UG

  external vdsug.dll


For other versions of VDS ::
Code:

  external vdsug.dll


There is no need for the external dlls to be in the Windows\System or the
Windows\System32 folders, they can be in the same path as the script
that is using them. This applies to all versions of VDS.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Oct 30, 2005 1:41 am    Post subject: Reply with quote

before using the EXTERNAL VDSUG.DLL line, i suggest you use DIRECTORY CHANGE, @PATH(%0) so that it reads,

- for vds 5

Code:

#define COMMAND,UG
#define FUNCTION,UG

directory change, @path(%0)

external vdsug.dll


- for other vds

Code:

directory change, @path(%0)

external vdsug.dll


serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Fri Nov 04, 2005 9:41 pm    Post subject: Um im loosing it Reply with quote

You mean to tell me that you need to tell the application what directory its running in. Cant you just append @path(%0) in front of the files you are calling as well? Sorry I may be going stupid on ya....hehe

Just asking because I have never done that at the begining of a script.

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Nov 04, 2005 10:03 pm    Post subject: Reply with quote

Actually, both ways are appropriate, along with copying them, the dlls, to the
Windows\System folder.

I've noticed a problem with VDS, every once in awhile, VDS doesn't
always change the current directory to the path of the script that it just
opened in the IDE. (I've only noticed this for VDS 4). One surefire way is to
of course issue the DIRECTORY CHANGE,@PATH(%0) command before trying
to load any external dlls.

As for myself, I always specify the full path to the extension(s) that I intend
to use in my scripts.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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