10/23/2008 10:17 PM | |
Posts: 23 Rating:
|
Browse to the online documentation Keep us posted about your progress. I wish you the best of luck... |
10/24/2008 6:17 AM | |
Joined: 2/22/2008 Last visit: 2/2/2023 Posts: 39 Rating:
|
Hi Mab, Thanks for now |
Last edited by: CNCData at: 11/7/2014 8:43 AM |
|
10/28/2008 8:41 AM | |
Posts: 23 Rating:
|
Hi Max, AttachmentOpcAlarmsEventsExample.zip (621 Downloads) |
10/29/2008 3:15 PM | |
Posts: 23 Rating:
|
Hi Max, At which point do you get that exception? I'm not that familiar with VB so I can't help you on any syntax issues. Anyway, all interface calls return a value of type HRESULT. You check the return value of each functioncall and takean appropriate action depending on the result. Ifyouare able to create an instance ofOpcEventServer thenthere is a method in the class which you canuseto get an error codetranslated toclear text. In the custom interface that method is actually declared in OpcCommon, but I assume you are using the automation interface. The automation interface is a wrapper dll for the custom interface. Another option isto use the windows API function FormatMessage. About your second issue. It should be "Subscription" not "Sub1", but that should have been quite obvious shouldn't it? You can find the OPC specifications for both custom and automation interfaces on OPC foundations websitehttp://www.opcfoundation.com br. mab |
Follow us on