Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0x80020011 Does not support a collection. #3

Open
mdauphin opened this issue May 25, 2012 · 0 comments
Open

0x80020011 Does not support a collection. #3

mdauphin opened this issue May 25, 2012 · 0 comments

Comments

@mdauphin
Copy link

I just try luacom, and It's a great module!
But I have a problem to call C++ IDispatch property object.
My IDL interface :
interface IData : IDispatch
{..}
interface IDataDiff : IData
{
[propget, helpstring("Nombre")] HRESULT nbPoints([out, retval] ULONG* pVal);
...
};

My C++ code :
IData pData = InitializeDataDiff();
IDispatch
pdisp = NULL;
pData->QueryInterface( IID_IDispatch, (void**)&pdisp );
luacom_IDispatch2LuaCOM(L, (void *) pdisp);
lua_setglobal(L, "data");

My LUA code:
value = data:nbPoints()
-- value = data.nbPoints -- return function !

I've COM HRESULT 0x80020011 Does not support a collection. I check in tLuaCom::call at line 340 the Invoke seem to be correct. My C++ COM code return S_OK, but in OLE microsoft code return x80020011.

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant