UINT16,inline编译错误
inlineUINT16GetInplaceEditLimit() const { return mEditLen; };
voidSetInplaceEditLimit(UINT16 Limit) { mEditLen = Limit; };
错误-------------------------
Compiling...
DesignerConditionView.cpp
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(197) : error C2146: syntax error : missing ';' before identifier 'GetInplaceEditLimit'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(197) : error C2433: 'UINT16' : 'inline' not permitted on data declarations
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(197) : error C2501: 'UINT16' : missing storage-class or type specifiers
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(198) : error C2061: syntax error : identifier 'UINT16'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(207) : error C2146: syntax error : missing ';' before identifier 'GetStringBufferLen'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(207) : error C2433: 'UINT16' : 'inline' not permitted on data declarations
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(207) : error C2501: 'UINT16' : missing storage-class or type specifiers
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(208) : error C2061: syntax error : identifier 'UINT16'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(221) : error C2146: syntax error : missing ';' before identifier 'GetIncrementalSearchTimer'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(221) : error C2433: 'UINT16' : 'inline' not permitted on data declarations
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(221) : error C2501: 'UINT16' : missing storage-class or type specifiers
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(222) : error C2061: syntax error : identifier 'UINT16'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(365) : error C2061: syntax error : identifier 'UINT8'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(391) : error C2146: syntax error : missing ';' before identifier 'mEditLen'
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(391) : error C2501: 'UINT16' : missing storage-class or type specifiers
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(391) : error C2501: 'mEditLen' : missing storage-class or type specifiers
E:\Windows\DNBdd\Branches\Branche_4.4_Base\Aggregation\..\Aggregation\..\ShareFiles\CGridCtrl.h(393) : error C2146: syntax error : missing ';' before identifier 'mBufferLen'
[解决办法]
typedef unsigned short UINT16;
???