M
Mitchell Hashimoto
Hello,
I have a somewhat "complicated" output parameter I need to get via
WIN32OLE and I'm having trouble getting it correct. The method signature
is as follows:
void GetDescription (out VirtualSystemDescriptionType[] aTypes, out
wstring[] aRefs, out wstring[] aOvfValues, out wstring[] aVBoxValues,
out wstring[] aExtraConfigValues)
I'm able to get basic string output parameters fine, but as soon as I
hit this method, I was stumped. How am I supposed to query this method
via the 'win32ole' library. My initial attempts were failures:
object.GetDescription(0, 0, 0, 0, 0) # Errors type mismatch
object.GetDescription([], [], [], [], []) # Errors type mismatch
I'm fairly certain I'll have to use object._invoke directly here but I'm
not sure what types to put into the types array. I have the win32ole.c
file open and I'm looking at the various types which are defined but I'm
not sure which to try.
Some guidance would be greatly appreciated. How would I call this
function?
Thank you,
Mitchell Hashimoto
I have a somewhat "complicated" output parameter I need to get via
WIN32OLE and I'm having trouble getting it correct. The method signature
is as follows:
void GetDescription (out VirtualSystemDescriptionType[] aTypes, out
wstring[] aRefs, out wstring[] aOvfValues, out wstring[] aVBoxValues,
out wstring[] aExtraConfigValues)
I'm able to get basic string output parameters fine, but as soon as I
hit this method, I was stumped. How am I supposed to query this method
via the 'win32ole' library. My initial attempts were failures:
object.GetDescription(0, 0, 0, 0, 0) # Errors type mismatch
object.GetDescription([], [], [], [], []) # Errors type mismatch
I'm fairly certain I'll have to use object._invoke directly here but I'm
not sure what types to put into the types array. I have the win32ole.c
file open and I'm looking at the various types which are defined but I'm
not sure which to try.
Some guidance would be greatly appreciated. How would I call this
function?
Thank you,
Mitchell Hashimoto