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 


loading dll's

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


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 2:02 am    Post subject: loading dll's Reply with quote

hello


i'am trying to run a script for the first time i donwload the ddl's i need BUt when i try to run the script i get extreanl libary not avaible how do i get the dll to work?


thanks
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Aug 02, 2002 2:18 am    Post subject: Reply with quote

when loading a dll without specifying a path(EXTERNAL vdsipp.dll), VDS looks in the folder the script is in and also in the Windows System folder. So you need to do one of the following.
1.) Move the DLL to the same folder as your script.
2.) Move the DLL to the System folder
3.) Specify the path to the DLL(EXTERNAL C:\Folder\Folder\vdsipp.dll

I don't recommend number 3 if other users will be using a program you make as they might not have the same path.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Tommy
Admin Team


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

PostPosted: Fri Aug 02, 2002 2:30 am    Post subject: Reply with quote

Personally I would recommend the following:

Code:

directory change,@path(%0)
external vdsipp.dll


VDS tries (part of copied from the Windows 95 Programmers Guide):
1. The directory from which the application is loaded (if running in the IDE, this is
the directory of VDS.EXE, not the script's directory!);
2. the current directory (not neccesarily the script's directory!);
3. Windows 95: The Windows system directory.
Windows NT: The 32-bit Windows system directory.
4. Windows NT: The 16-bit Windows system directory.
5. The Windows directory.
6. The directories that are listed in the PATH environment variable.

I use "directory change" so that the current directory is changed to the script's
directory. Then I use "external" without any path so that the directory could be
located either in the current directory, or one of the other paths such as the
system directory.

If I were to use "external @path(%0)vdsipp.dll" directly, the DLL could only be
found in the script's directory, and not one of the alternatives such as the system
directory.

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 2:35 am    Post subject: thanks Reply with quote

thanks guys i got it to work Smile
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
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