Skip to content

Implement Another COM object #317

Answered by timsneath
kevinxxq asked this question in Q&A
Discussion options

You must be logged in to vote

We're some way from the win32 package at this point, but the main challenge you have is how to express an array in the VARIANT data type.

The Dart definition of VARIANT is here:
https://github.com/timsneath/win32/blob/83e32cb0426b3ee066e1c5ea36d5e8d1b0756f7f/lib/src/structs.dart#L328

You need to set the vt to the right array type (Win32 has multiple), and then set llVal to the memory address. Beyond that, I can't help you, I'm afraid -- we're getting into the vagaries of calling IDispatch and OLE Automation from native code, rather than Dart interop.

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by timsneath
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #315 on October 22, 2021 18:50.