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

Cannot handle VT_I2 (int16) variants.. #10

Open
TheInsomniac opened this issue Jan 9, 2014 · 6 comments
Open

Cannot handle VT_I2 (int16) variants.. #10

TheInsomniac opened this issue Jan 9, 2014 · 6 comments

Comments

@TheInsomniac
Copy link

I have a program that returns many values as type VT_I2. Is there a way to get node-win32ole to handle these? I notice that it handles 32 and 64 bit ints and can't think of any reason why it WON'T work but.. I've never worked with C++ before.

Thanks!

@Antony74
Copy link
Contributor

Antony74 commented Jan 9, 2014

Are you able to provide example-code to illustrate this problem, please?

@TheInsomniac
Copy link
Author

I'm connecting to my Homeseer home automation software (I was previously using Python to do this but wanted to attempt it in Node.js). The setup:

var win32ole = require('win32ole');
var hs = win32ole.client.Dispatch('Homeseer.Application');

Works as it does not return a response value but Homeseer does register the command:

hs.WriteLog("Testing", "Testing 123");

Doesn't work because the returned value is a VT_I2:

hs.DeviceStatus("Q31");
> [unknown type: 2:VT_I2 (not implemented now)]
hs.execX10("Q31");
> [unknown type: 2:VT_I2 (not implemented now)]

Thanks for the quick reply!

@Antony74
Copy link
Contributor

I believe I've sorted this out. Would you like to try my development version to check?

npm install win32ole-dev

@TheInsomniac
Copy link
Author

Works fantastically. Thank you for performing this enhancement for me.

@pvilas
Copy link

pvilas commented Nov 27, 2014

Hi Antony
Did you updated this? I have the same problem with VT_I2 and now it works with de dev branch.
Regards.

@Antony74
Copy link
Contributor

I'm afraid this is not my project to update. There hasn't been a release of node-win32ole for a long time now. I'm writing a more ad hoc node extension of my own these days so I can efficiently make the batches of COM calls I require directly from C++ without everything being marshaled to JavaScript in between. :-(

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