Difference between revisions of "CALicense::ErrorCode/zh"

(Created page with "CAEngine对象具有相同名称的属性(使用一组和这一致的错误代码)。一旦你获得一个CAEngine实例,你讲需要检...")
Line 14: Line 14:
 
:76 – “非应用程序注册码” (来自SetApplicationLicenseCode方法)
 
:76 – “非应用程序注册码” (来自SetApplicationLicenseCode方法)
  
[[CAEngine/zh|CAEngine]]对象具有相同名称的属性(使用一组和这一致的错误代码)。一旦你获得一个[[CAEngine/zh|CAEngine]]实例,你讲需要检查其[[CAEngine::ErrorCode/zh|ErrorCode]]属性——不是[[CALicense/zh|CALicense]]的ErrorCode属性。此[[CALicense::ErrorCode/zh|CALicense::ErrorCode]]仅用来捕捉[[CAEngine/zh|CAEngine]]实例化过程中的错误。
+
[[CAEngine/zh|CAEngine]]对象具有相同名称的属性(使用一组和这一致的错误代码)。一旦你获得一个[[CAEngine/zh|CAEngine]]实例,你将需要检查其[[CAEngine::ErrorCode/zh|ErrorCode]]属性——不是[[CALicense/zh|CALicense]]的ErrorCode属性。此[[CALicense::ErrorCode/zh|CALicense::ErrorCode]]仅用来捕捉[[CAEngine/zh|CAEngine]]实例化过程中的错误。
  
 
== 数据类型 ==
 
== 数据类型 ==

Revision as of 07:58, 23 October 2015

ADE User Guide > ADE Server Class Reference > CALicense

Other languages:
English • ‎中文

property int CALicense::ErrorCode

来自前面方法调用的状态代码(失败原因)。尤其是,在调用NewCAEngine方法后,这提供了关于失败原因的信息。

任何错误代码的描述性文本都能通过使用ErrorText属性获取。一些代码可能会遇到(不全面):

71 – “使用的CAEngine实例数量已达到允许的上限”
72 – “无效注册码”
73 – “过期注册码”
74 – “到期注册码”
75 – “没有安装ADE注册码”
76 – “非应用程序注册码” (来自SetApplicationLicenseCode方法)

CAEngine对象具有相同名称的属性(使用一组和这一致的错误代码)。一旦你获得一个CAEngine实例,你将需要检查其ErrorCode属性——不是CALicense的ErrorCode属性。此CALicense::ErrorCode仅用来捕捉CAEngine实例化过程中的错误。

数据类型

integer(整型)

访问

读取

示例用法

C#

CALicense lic = new ADE.CALicense();
CAEngine ade = lic.NewCAEngine();
if ( ade == null) {
   MessageBox.Show( "Error " + lic.ErrorCode + ": " + lic.ErrorText, "ADE could not be started", MessageBoxButtons.OK );
   return
}
...

另请参考

Comments


You are not allowed to post comments.