Comments (3)
Hi,durs.
According to the question I search.I think I have found the reason.
Before Ole4.0,External programs can directly call methods in OCX. After Ole4.0, every time a method in a control is called, the system will automatically check whether it is allowed to be called, that is, run 'COleControl. IsInvokeAllowed (DISPID)'
This method checks whether the control is properly initialized or loaded through a persistent storage interface. If one of the two conditions is met, it returns TRUE, otherwise it returns FALSE.
When using controls in MFC, many details, such as initialization, are filtered out, so that most users will not encounter this problem.
But when I call the function in node, it return false.
The solution is to overwrite this method again
like this:
'''
BOOL CMyNameCtrl::IsInvokeAllowed (DISPID)
{
return TRUE;
}
'''
This work is difficult for me, because the ocx file is provided by another corporation.Finally, I changed my approach to solving this matter without node.
from node-activex.
That's right, but weird, Catastrophic Failure (Error 0x8000FFFF) occurs when calling DispInvoke with dispid=1
from node-activex.
Dear @GoodZivi,
I got the same issue and your research gave me an understanding. Thank you.
But this is still problem for me. So did you find the another solution ? Then could you share how to?
Thank you.
from node-activex.
Related Issues (20)
- https://Android-sdk-is
- Question about "Function Setter" limitation HOT 1
- Type Mismatch Error HOT 1
- Q: How to obtain a running instance of Excel (Marshal.GetActiveObject?) HOT 4
- im getting a error !!
- update docx toc failed in word but succeeded in wps HOT 5
- Can't use node-activex for [email protected] HOT 3
- How to attach to an existing IDispatch pointer HOT 10
- installation fail
- Cannot find module './build/Release/node_avtivex.node' HOT 1
- LICENSE file is not found HOT 3
- DispInvoke: XXX Error HOT 1
- When the electron is running,a program crash was encountered. Look at the stack information, which looks like node-activex HOT 2
- Can't build for Electron 28.2 HOT 2
- cannot set properties for objects
- Winax is unable to call a method in the com component HOT 2
- How to rebuild for node 22.0.0? HOT 2
- RollupError: Unexpected character '�'
- Electron package, it was detected as Trojan by Defender HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-activex.