Question How to deal with BSTR and LPCTSTR in Visual Basic?

heijmink

New member
Joined
Nov 26, 2012
Messages
1
Programming Experience
Beginner
Forgive me if this is a trivial of stupid question.
I'm a beginner, and I'm just trying to get a little utility working.

In VS VB 2010 I'm using an old COM component that was once developed in VC++.

I can use the control fine, but when I need to get variables from and to the COM, it does not work.

The desctiption says:
BSTR GetOidString (LPCTSTR oid) A variant of GetOid which returns the result instead of using a pass by reference parameter.

My object is AsIqeye1.

When I use :
Labe1.Text = AxIqeye1.GetOidString("2.4")

Label1.Text always says "Error"

What do I need to do to receive whatever AxIqeye1.GetOidString("2.4") returns as a normal string?

Thanks in advance!

Note, this is abou getting a IP camera frm IQinVision working.The ActiveX control can be downloaded here: http://www.iqeye.com/sites/default/files/downloads/iqeyectrl.zip
 
Back
Top