--
You received this message because you are subscribed to the Google Groups "Java Native Access" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/74bc1762-77e5-4d1d-bc91-3c88778350c5n%40googlegroups.com.
Ah. Line 63 seems to be creating the Application interface, that’s already enough – I need just a setting from Excel itself.
That looks dead simple !
I’ll try and see what I get.
Thanks a lot!
Regards,
Jo
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/CANQs7dDqVyfDAPB1x%3DoB_oBUL1hmFsii5V52jmu6qci9M3UhwA%40mail.gmail.com.
Sensitivity: C2 Internal
The content of this e-mail is intended only for the
confidential use of the person addressed.
If you are not the intended
recipient, please notify the sender and delete this e-mail immediately.
Thank
you.
Hmm... looking at the referenced code, the expected use is that everybody is using their own variant of ComExcel_Application that has just the part of the API that you actually need, is that correct?
find out whether Excel is currently running?
Same result here – it seems that GetObject(, "Excel.Application") does what I want, but I have found multiple definitions of GetObject in JNA; I’m pretty sure the GDI-related ones don’t apply (GDI is about graphics, not applications), but that leaves me with a choice of
· IRunningObjectTable.GetObject
· IShellFolder.GetObject
· RunningObjectTable.GetObject
· EnumMoniker which enumerates a running object table (might be part of the implementation of the other functions)
So I’m unsure which one to try next; I suspect that IShellFolder isn’t relevant and that RunningObjectTable is a wrapper that simplifies using IRunningObjectTable, but I’m unsure how to validate that assumption.
Regards,
Jo
From: jna-...@googlegroups.com <jna-...@googlegroups.com> On Behalf Of Tres Finocchiaro
Sent: Donnerstag, 8. April 2021 16:08
To: jna-...@googlegroups.com
--
You received this message because you are subscribed to a topic in the Google Groups "Java Native Access" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jna-users/neZY8KK4C5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
jna-users+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jna-users/CANQs7dBjZdiRBYOBF%2BX726qSuzboFJzYnfbk5_iLPG0EeRmPXw%40mail.gmail.com.
Sensitivity: C2 Internal