View previous topic :: View next topic |
Author |
Message |
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Jul 30, 2003 7:37 am Post subject: Error ! Get Error Code Descriptions |
|
|
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
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
|
Back to top |
|
|
|