Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Returning errorcde 0x8000ffff when calling C++ ocx's method. #23
I tried to use win32ole addon to load general activex controls except MS Office's
c:\Program Files\nodejs>node ntgraph.js
CoInitialize and CoCreateInstance were executed nornally.
At first, I inspected if initialization of automation process was wrong.
Set ntgraph = CreateObject("NTGRAPH.NTGraphCtrl.1")
Set ntgraph = Nothing
VB Script returned same error code, 0x8000ffff.
To fix the problem, override IsInvokeAllowed in your ActiveX Control as follows:
// You can check to see if COleControl::m_bInitialized is FALSE
When I added this code