You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the way parameters are handled so they don't need to be explicitly typed. Instead, use ITypeInfo to retrieve the expected VT.
Concept:
id = ITypeInfo->GetIDsOfNames(name)
index = ITypeInfo2->GetFuncIndexOfMemId(id)
func = ITypeInfo->GetFuncDesc(index)
for (i = 0; i < func->cParams; i++)
{
vt = func->lprgelemdescParam[i]->tdesc->vt
VariantChangeType(var, var, vt)
}
ITypeInfo->ReleaseFuncDesc(func)
Also check out how AHK does this internally.
The text was updated successfully, but these errors were encountered:
…ling
Interface wrappers can now directly be passed as parameters and are translated to VT_UNKNOWN.
The same *should* work for structures, but it doesn't.
* put it into a new function
* make it work more generic
* retrieve FUNCDESC, ELEMDESC & TYPEDESC for param in ITL_InterfaceWrapper.__Set(), too
* call the new function from both and __Set()
Related to #5.
Change the way parameters are handled so they don't need to be explicitly typed. Instead, use ITypeInfo to retrieve the expected VT.
Concept:
Also check out how AHK does this internally.The text was updated successfully, but these errors were encountered: