Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base . For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
Access returned array elements from C++
Questions:
1. I assume that you observe this with our public demo server, right? Or is it a different server?
2. Do you actually need to work with value arrays in you project (this is just to assess the priority of the issue)?
Thank you
Please Log in or Create an account to join the conversation.
Sorry to bother you.
I am trying to read SafeArray from DAVtqPtr->Value.parray, But, while accessing data it shows unable to read memory(pVals value always goes null). I am trying to get safearray of R8 (real values). Please confirm me that i am reading correct safearray or something else. My code is below,
Thanks for understanding
Please Log in or Create an account to join the conversation.
All incoming values are represented in Windows VARIANT. That includes array values. You can examine the incoming DAVtq->Value, and you will find a VARIANT there that contains a "safe array".
Handling these is a standard Windows C/C++ programming topic that is outside of the scope of these forums. You should be able to find information about in Windows documentation, ATL/MFC documentation, Google-ing for it, etc.
Best regards
Please Log in or Create an account to join the conversation.
Could you please help me on reading array tags like Dynamic/Analog Types/Double[].
Array tags values are showing empty in console app.
BTW, I have optimized your code and you can use it if you want. Thankyou.
Please Log in or Create an account to join the conversation.