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 


Error ! Get Error Code Descriptions

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Wed Jul 30, 2003 7:37 am    Post subject: Error ! Get Error Code Descriptions Reply with quote

GET ERROR DETAILS By CodeScript

Quick Info - Get Windows Error Code Descriptions.
VDS version - VDS 5.x +
Windows version - Win 9x/2k/NT/XP
Not compatible - None
Non-VDS/Non System dll - No.
API - Yes.
Tested on - Win XP.
Difficulty Rating - Beginner/Intermediate/Advanced


This is an intemaediate level example of API use.
The Utility gives you user friendly error messages from system error code numbers.
Could be useful when you are using API and want your client or even yourself know what went wrong.

The script has been split into main and a include file for ease of use.

In any of your .dsc files just do 3 things:

Place the error.fil in the same directory as the .dsc file.
Add a line "#include error.fil" at the top(no quotes).
Pass the error code variable(e.g. %A) as follows :

Code:
WARN @GETERRORDETAILS(%A)

# OR

INFO @GETERRORDETAILS(%A)

An error message will be displayed.

You can get the complete package from here:
http://www.vdsworld.com/index.php?page=download&fileid=309

Enjoy

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
DaveŽ
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 403
Location: Australia

PostPosted: Sun Dec 21, 2008 8:55 am    Post subject: Re: Error ! Get Error Code Descriptions Reply with quote

CodeScript wrote:
You can get the complete package from here:
http://www.vdsworld.com/index.php?page=download&fileid=309


Correct URL is now:
http://www.vdsworld.com/download.php?id=309

_________________
cheers

DaveŽ
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code 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