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

How to invoke non-dispatched member functions? #52

Open
mkarg opened this issue Jan 24, 2024 · 4 comments
Open

How to invoke non-dispatched member functions? #52

mkarg opened this issue Jan 24, 2024 · 4 comments

Comments

@mkarg
Copy link

mkarg commented Jan 24, 2024

I need to invoke a COM server which only partially supports IDispatch.
It works when calling from C++, but I wonder how to do the same in Java.

That COM-Server exposes a C-interface which extends C-IDispatch (so JACOB is actually able to find it by IID and expose it as Java-IDispatch), but some of its custom C-member-functions are not exposed as COM-IDs or COM-Names! 😢

A C++ client has no problem with this, as the C++ compiler directly uses the vtable to call those unexposed member functions.

But how can JACOB invoke those unexposed member functions? 🤔

@EJP286CRSKW
Copy link

It can't. You'll have to write a bit of JNI yourself.

@mkarg
Copy link
Author

mkarg commented Feb 3, 2024

That's really a pity. Are there plans to extend JACOB's functionality in this direction?

@EJP286CRSKW
Copy link

EJP286CRSKW commented Feb 4, 2024 via email

@freemansoft
Copy link
Owner

PRs would be great!

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

3 participants