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.
Compiling with Visual Studio 2013 Express
- Took a new Windows 7 installation.
- Installed "Microsoft Visual Studio Express 2013 for Windows Desktop".
- Installed latest QuickOPC 5.30, custom->full installation ("for COM development" should be sufficient, too).
- Opened the solution with COM-based C++ examples: Start -> All Programs -> OPC Labs -> QuickOPC 5.3 -> Examples (Source Code) -> COM Visual C++ Examples.
- Visual Studio auto-upgrades the projects (we intentionally provide them in VS 2012 format).
- Build the solution. It has 5 projects, 4 of them will fail, because they use either MFC or ATL, and these are not supported under the VS "Express" Edition.
The project that builds well (and it actually also runs) is the DumpAddressSpace. Here is the relevant code:
This project uses what is called I think "native compiler support" for COM, i.e. it has its own version of smart pointer classes etc. (different from ATL or COM), and it is capable of "importing" the type library and creating the C++ definitions of interfaces and classes.
This approach should work pretty well as long as you are just calling methods. It will probably get a bit complicated or problematic once you need to set up events (for notifications - subscriptions).
Let me know if you need more help in this area, such as providing example for reading, writing etc.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I will try to make the example you mentioned, for VS 2013 Express, and send it to you. Please allow a day or several days before I have the results.
Best regards
Please Log in or Create an account to join the conversation.
I'm having difficulty compiling and running somethere that I would hope to be very simple. It's important to note that I'm experienced with c++ but not so much with Visual Studio.
Few issues are where is the libid is found when importing the com object to the project? I guess that would help me get started.
Thanks!
Please Log in or Create an account to join the conversation.