-
Notifications
You must be signed in to change notification settings - Fork 59
6.Topics
We DON'T use exception to notify or handle errors. As an alternative, most of the APIs return Error Codes to report errors.
However, you're still able to use exceptions in your codes but please be careful to catch all the exceptions you thrown. NERvGear does not catch any exceptions, if one exception is thrown through your codes, program might crash directly.
We highly recommend that each interface method should return a long
type error code following the COM Error Codes standard.
First, we highly recommend to write and debug plugins in NERvSDK instead of products of NERvGear(such as SAO Utils). For Microsoft Visual Studio users, the simplest way to debug is to attach on NERvSDK process. Just click "DEBUG"->"Attach to process" and choose "NERvSDK.exe". If your plugin used .net Freamwork via CLI, CLR or something, you'd better to set "Attach to" to Managed(xx version) and Native code. Else, you must set it to "Native code".
-
Plug-in Demo
See Writing A Minimal Plugin, the project is located insamples\Plug-in Demo
. -
Data Source Demo
See Implementation of Components, the project is located insamples\Data Source Demo
.