hi!
I'm getting this msg:
An unhandled exception of type 'System.NullReference Exception' occured.
Object reference not set to an instance of an object. Can any1 explain why am I getting this message?
I created an object of DLL reference to access methods in the COM DLL. Code snippet:
Dim oSC as Reader.Access
Dim str1, str2, str3 As String
StartSession()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
' Read Record
str1 = oSC.ReadCard(hReader, &H0, &H20)
str2 = oSC.ReadCard(hReader, &H20, &H40)
str3 = oSC.ReadCard(hReader, &H40, &H60)
TextBox1.Text = Trim(str1)
TextBox2.Text = Trim(str2)
TextBox3.Text = Trim(str3)
Please help
I'm getting this msg:
An unhandled exception of type 'System.NullReference Exception' occured.
Object reference not set to an instance of an object. Can any1 explain why am I getting this message?
I created an object of DLL reference to access methods in the COM DLL. Code snippet:
Dim oSC as Reader.Access
Dim str1, str2, str3 As String
StartSession()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
' Read Record
str1 = oSC.ReadCard(hReader, &H0, &H20)
str2 = oSC.ReadCard(hReader, &H20, &H40)
str3 = oSC.ReadCard(hReader, &H40, &H60)
TextBox1.Text = Trim(str1)
TextBox2.Text = Trim(str2)
TextBox3.Text = Trim(str3)
Please help