-
Notifications
You must be signed in to change notification settings - Fork 62
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
Converting JavaScript string to C++ BSTR #13
Comments
What if with round brackets
let nvr = myAutom.Nvrs.NvrFromIpAddress('192.168.1.9');
2017-07-30 1:13 GMT+03:00 Kamil Wojtczyk <notifications@github.com>:
… Hi, I have a ActiveX property that takes in BSTR as an argument that
doesn't seem to work properly in node-activex.
Docs:
NvrFromIpAddress ([in] BSTR IpAddress) [get]
Property to get an NVR by IP Address.
NodeJS:
let nvr = myAutom.Nvrs.NvrFromIpAddress['192.168.1.9'] // returns undefined
C#:
var nvr = myAutom.Nvrs.NvrFromIpAddress["192.168.1.9"]; // returns nvr object
Any ideas? I've tried couple other functions/properties that take BSTR as
an argument and none work correctly.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjGNRQoHoN-3VoQNF_wazJoWg_r70FGks5sS656gaJpZM4Oneha>
.
|
I've tried that as well and returns:
BTW, similar function/property:
When called with square brackets runs fine, but fails as a JS function with round brackets: let nvrOne = myAutom.Nvrs.Item[1] // returns nvr object
let nvrOne = myAutom.Nvrs.Item(1) // throws Error: DispInvoke: Item Member not found. |
Try new 1.0.3 version with property get fix |
Thank you so much @durs, works perfectly! 😃 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I have a ActiveX property that takes in BSTR as an argument that doesn't seem to work properly in
node-activex
.Docs:
NodeJS:
C#:
Any ideas? I've tried couple other functions/properties that take BSTR as an argument and none work correctly.
The text was updated successfully, but these errors were encountered: