// an action assocated with a component
typedef struct AccessibleActionInfoTag {
wchar_t name[SHORT_STRING_SIZE]; // action name
} AccessibleActionInfo;
// all of the actions associated with a component
typedef struct AccessibleActionsTag {
jint actionsCount; // number of actions
AccessibleActionInfo actionInfo[MAX_ACTION_INFO]; // the action information
} AccessibleActions;[/mw_shl_code]
ps:两个常量都为256
AccessibleActions结构体中有嵌套一个结构体AccessibleActioninfo,
这个是自己瞎想的一个
[mw_shl_code=actionscript3,true]$actions = DllStructCreate("struct;int;ptr[256];endstruct")
For $i = 1 To 256
$actionname = DllStructCreate('wchar[256]')
DllStructSetData($actions, 2, DllStructGetPtr($actionname), $i)
Next
$pAction = DllStructGetPtr($actions)
行不通 自己也感觉不合理 各位有时间看看错在哪里?
|