I need to integrate a Siemens ActiveX/COM control into a Visual [login to view URL] program in order to read a couple variables out of a Siemens 412-2PCI slot PLC. With VB.Net I get now all kinds of failure messages.
All samples in the Siemens documentation are for VB6.0 and I believe the COM wrapper from VB.NET does something the Siemens ActiveX doesnt like. I am the absolute VB.NET beginner and this is probably an easy questions for the experts of you.
How do I get this control working right under VB.NET?
For example this code in my application:
Dim Test As Object = Nothing
Dim State As Integer = 0
[login to view URL]("MW4:STRING", Test, State, 0)
[login to view URL] = [login to view URL]
Creates this failure:
[login to view URL]: Object reference not set to an instance of an object.
at [login to view URL](String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at [login to view URL](String VariableName, Object& Value, Int32& State, Int32 TimeOut)
at [login to view URL](String variableName, Object& value, Int32& state, Int32 timeOut)
Documentation "[login to view URL]" is available at the Siemens Support web site [login to view URL] under entry id: 1169750
Software "Siemens Simatic Computing V3.0 Service Pack 2" can be downloaded under entry id: 12666256
## Deliverables
1) Complete working sample source code of how to implement the Simatic Computing COM object, where the control supports all its offered functions under VB.NET
2) Complete ownership and distribution copyrights to all work purchased.
## Platform
Visual [login to view URL]
Windows 2000 SP2
Siemens Simatic Computing V3.0 Service Pack 2
Documentation to AxS7Data and Simatic Computing Software at [login to view URL] support.