durs / node-activex

Node.JS Implementaion of ActiveXObject
MIT License
329 stars 62 forks source link

Output parameter of ref type long throwing Type Mismatch #79

Open Alee02 opened 4 years ago

Alee02 commented 4 years ago

I have tried the following combinations

var longOuput = new Variant(0, "long")
var longOutputRef = new Variant(longOutput, "byref")
var longOuput = new Variant(0, "long")
var longOutputRef = new Variant(longOutput, "plong")

The type mismatch error occurs only when passing a reference type. Passing the following compiles fine, but the out value isn't returned. var longOuput = new Variant(0, "long")

Here is the method signature for reference:

VARIANT GetCurrentId(
                [in] BSTR sessionID, 
                [out] long* number, 
                [out] VARIANT* error, 
                [out] VARIANT* outcome);
Conrad33 commented 1 year ago

I'm having the exact same issue. Has any one figured it out?